% The house layer of the AHM paper, as in the GRH paper of the programme, after the GAI-MUA papers (00 campaign/styles/rs-header.tex): leading, % colours, running heads, the title block, parts and headings, the theorem environments, the Lean anchors, the % references list. Article form after the Annals of Mathematics: parts, sections numbered through the paper, % statements numbered within sections, proofs ending with a square. \linespread{1.06} \setlength{\parskip}{0pt} \setlength{\emergencystretch}{3em} % an overfull line is a gate failure: stretch, never overrun \clubpenalty=10000 \widowpenalty=10000 \displaywidowpenalty=10000 \setcounter{tocdepth}{2} \AtBeginDocument{\urlstyle{same}} \numberwithin{equation}{section} \definecolor{ahmteal}{HTML}{0B5F63} % the darkest teal of the AURORA scale (7.0 : 1 on white) \definecolor{ahmrule}{HTML}{A7C2C5} \definecolor{ahmgrey}{HTML}{4A575B} \hypersetup{colorlinks=true,linkcolor=ahmteal,citecolor=ahmteal,urlcolor=ahmteal,filecolor=ahmteal, bookmarksdepth=3,pdfstartview=FitH} % Running heads: the author on left-hand pages, the short title on right-hand pages, the folio outside. \pagestyle{fancy} \fancyhf{} \renewcommand{\headrulewidth}{0pt} \fancyhead[CE]{\footnotesize\scshape\AHMauthor} \fancyhead[CO]{\footnotesize\itshape\AHMshorttitle} \fancyhead[LE,RO]{\footnotesize\thepage} \fancypagestyle{ahmfirst}{\fancyhf{}\fancyfoot[C]{\footnotesize\thepage}} \fancypagestyle{ahmpart}{\fancyhf{}} \makeatletter % amsart restores \topskip from \normaltopskip when it sets a page style (OpenShurik, 11-19): set both. \setlength{\normaltopskip}{10pt plus 1pt}\setlength{\topskip}{\normaltopskip} % ---- the title block --------------------------------------------------------------------------------------------- % Above: version and date on the left, DOI (once assigned) and licence on the right, a hairline beneath. Then title, % subtitle, author, one line with affiliation, e-mail and ORCID iD; then the abstract, MSC and keywords at 85 % of % the measure. \newcommand{\AHMmaketitle}[1]{% \thispagestyle{ahmfirst}% \begingroup\parindent\z@ \vspace*{-6mm}% {\footnotesize\color{ahmgrey}\AHMversion\enspace\textperiodcentered\enspace\AHMdate\hfill \ifx\AHMdoi\@empty\else\href{https://doi.org/\AHMdoi}{doi:\AHMdoi}\enspace\textperiodcentered\enspace\fi \href{https://creativecommons.org/licenses/by/4.0/}{\AHMlicence}\par}% \vspace{1.4mm}{\color{ahmrule}\hrule height .4pt}% \vspace{12mm}% \begin{center} {\fontsize{17.28}{21.5}\selectfont\bfseries\AHMtitle\par}% \vspace{2.8mm}% {\fontsize{12}{15.2}\selectfont\itshape\AHMsubtitle\par}% \vspace{6.5mm}% {\normalsize\scshape\AHMauthor\par}% \vspace{1.4mm}% {\footnotesize\href{\AHMaffiliationurl}{\AHMaffiliation}\enspace\textperiodcentered\enspace \href{mailto:\AHMemail}{\AHMemail}\enspace\textperiodcentered\enspace\url{\AHMorcid}\par}% \end{center} \vspace{5.5mm}% {\leftskip .075\textwidth \rightskip .075\textwidth \fontsize{9.5}{12.4}\selectfont{\scshape Abstract.}\enspace\ignorespaces #1\par \vspace{2.4mm}% \footnotesize\textit{2020 Mathematics Subject Classification.}\enspace\AHMmsc.\par \vspace{.4mm}% \textit{Key words and phrases.}\enspace\AHMkeywords.\par}% \vspace{7mm}% \endgroup} % ---- parts and headings -------------------------------------------------------------------------------------------- % A part has a page of its own (layout gate L1): its number in small capitals, its name, and the summary that the % part's introduction expands, between two short hairlines. Sections are numbered through the paper. \newcounter{ahmpart} \renewcommand{\theahmpart}{\Roman{ahmpart}} \newcommand{\AHMpart}[2]{% #1 label, #2 the name \clearpage\thispagestyle{ahmpart}% \refstepcounter{ahmpart}\label{#1}% \phantomsection\addcontentsline{toc}{part}{Part~\theahmpart.\texorpdfstring{\quad}{ } #2}% \vspace*{.28\textheight}% \begin{center} {\color{ahmrule}\rule{.28\textwidth}{.4pt}}\par\vspace{3.2mm}% {\small\scshape\color{ahmteal}Part \theahmpart}\par\vspace{1.6mm}% {\fontsize{15}{18.5}\selectfont\bfseries #2\par}\vspace{3.4mm}% {\color{ahmrule}\rule{.28\textwidth}{.4pt}}\par \end{center} \clearpage} \def\@secnumfont{\bfseries} % A heading is never followed by fewer than four lines on its page (layout gate P2). \ahm@needspace starts a new page % when less than #1 is left; unlike \needspace it inserts no penalty, so it never invites a short page by itself. A % section heading is usually followed at once by a subsection heading, hence the larger reserve. \def\ahm@needspace#1{\par\begingroup\setlength{\dimen@}{#1}\dimen@ii\pagegoal\advance\dimen@ii-\pagetotal \ifdim\dimen@>\dimen@ii\ifdim\dimen@ii>\z@\newpage\fi\fi\endgroup} \def\section{\ahm@needspace{14\baselineskip}\@startsection{section}{1}{\z@}{1.75\linespacing\@plus.4\linespacing\@minus.2\linespacing}% {.7\linespacing}{\normalfont\fontsize{12.5}{15}\selectfont\bfseries\boldmath\raggedright}} \def\subsection{\ahm@needspace{8\baselineskip}\@startsection{subsection}{2}{\z@}{1.15\linespacing\@plus.3\linespacing\@minus.1\linespacing}% {.4\linespacing}{\normalfont\normalsize\bfseries\boldmath\raggedright}} % \AHMkeep{n} keeps the next n lines together without inviting a short page (a statement that opens with a lead-in). \newcommand{\AHMkeep}[1]{\ahm@needspace{#1\baselineskip}} \def\subsubsection{\@startsection{subsubsection}{3}{\z@}{.8\linespacing\@plus.3\linespacing}% {-.6em}{\normalfont\normalsize\itshape}} % Contents: parts in small capitals, sections with their page numbers. \def\l@part#1#2{\addpenalty{-\@highpenalty}\vskip .9em\@plus.2em {\noindent\scshape #1\hfill\upshape #2\par}\nobreak} % ---- statements ---------------------------------------------------------------------------------------------------- % Theorems, propositions, lemmas and corollaries in italics; definitions, remarks, notation and examples upright. % One counter for all, within the section ("Theorem 7.3"). The main theorems of the introduction are lettered. \newtheoremstyle{ahmplain}{.9\baselineskip}{.9\baselineskip}{\itshape}{}{\bfseries}{.}{.5em} {\thmname{#1}\thmnumber{ #2}\thmnote{\ (\mdseries #3)}} \newtheoremstyle{ahmdefinition}{.9\baselineskip}{.9\baselineskip}{\normalfont}{}{\bfseries}{.}{.5em} {\thmname{#1}\thmnumber{ #2}\thmnote{\ (\mdseries #3)}} \newtheoremstyle{ahmremark}{.6\baselineskip}{.6\baselineskip}{\normalfont}{}{\itshape}{.}{.5em} {\thmname{#1}\thmnumber{ #2}\thmnote{\ (#3)}} % Each environment that shares the counter has an alias counter (aliascnt), so that hyperref and % cleveref see its own name ("Lemma 4.5"), not that of the shared counter. \newcommand{\AHMsharedthm}[2]{\newaliascnt{#1}{theorem}\newtheorem{#1}[#1]{#2}\aliascntresetthe{#1}} \theoremstyle{ahmplain} \newtheorem{theorem}{Theorem}[section] \AHMsharedthm{proposition}{Proposition} \AHMsharedthm{lemma}{Lemma} \AHMsharedthm{corollary}{Corollary} \AHMsharedthm{conjecture}{Conjecture} \newtheorem{mainthm}{Theorem} \renewcommand{\themainthm}{\Alph{mainthm}} \newtheorem*{theorem*}{Theorem} \theoremstyle{ahmdefinition} \AHMsharedthm{definition}{Definition} \AHMsharedthm{hypothesis}{Hypothesis} \AHMsharedthm{construction}{Construction} \theoremstyle{ahmremark} \AHMsharedthm{remark}{Remark} \AHMsharedthm{notation}{Notation} \AHMsharedthm{example}{Example} \AHMsharedthm{observation}{Observation} % ---- Lean anchors -------------------------------------------------------------------------------------------------- % \lean{AlienHodgeNode1.node1_hr} (several names separated by commas) ties the statement in which it stands to the declarations of the % Lean development that prove it. Nothing is printed in the text; the anchors are written, with the number and the % page of the statement, to \jobname.lnk, from which Appendix C is set and against which the anchor and coverage % gates check the rebuilt Lean environment. % The anchor follows the statement, outside its group, so the number of the last statement is kept % globally at the end of each statement environment (an equation inside it has ended by then). \newwrite\ahm@lnk \AtBeginDocument{\immediate\openout\ahm@lnk=\jobname.lnk\relax} \def\ahm@laststmt{}\def\ahm@lastkind{} \newcommand{\ahm@track}[2]{\AddToHook{env/#1/end}{\xdef\ahm@laststmt{\@currentlabel}\gdef\ahm@lastkind{#2}}} \ahm@track{theorem}{Theorem}\ahm@track{proposition}{Proposition}\ahm@track{lemma}{Lemma} \ahm@track{corollary}{Corollary}\ahm@track{mainthm}{Theorem}\ahm@track{definition}{Definition} \ahm@track{hypothesis}{Hypothesis}\ahm@track{construction}{Construction}\ahm@track{remark}{Remark} \ahm@track{conjecture}{Conjecture} % \lean[eq:key]{names} anchors a numbered display (or a definition in running text) instead. \newcommand{\lean}[2][]{\ifx\relax#1\relax \protected@write\ahm@lnk{}{\string\AHMleanrow{\ahm@lastkind}{\ahm@laststmt}{\thepage}{\detokenize{#2}}}% \else \protected@write\ahm@lnk{}{\string\AHMleanrowref{#1}{\thepage}{\detokenize{#2}}}% \fi\ignorespaces} % Appendix A as printed (D12): one row per section, read from generated/lean-summary.tex, which tools/build.py writes % from the anchors and the section labels until the pages are stable, and keeps in the source, so that the source % package compiles to the same paper without the build; the statement-by-statement table goes to out/supplement. % The rows are read into a token list first: \input cannot stand inside an alignment. \newtoks\ahm@rows \newread\ahm@in \newcommand{\AHMleansumrow}[6]{#1 & #2 & #3 & #4 & #5 & {\footnotesize\ttfamily\raggedright #6}\\} \newcommand{\AHMleansummary}{\IfFileExists{generated/lean-summary.tex}{% \global\ahm@rows{}% \openin\ahm@in=generated/lean-summary.tex\relax \begingroup\endlinechar=-1 \loop\unless\ifeof\ahm@in \read\ahm@in to\ahm@line \ifx\ahm@line\@empty\else\global\ahm@rows\expandafter{\the\expandafter\ahm@rows\ahm@line}\fi \repeat \endgroup\closein\ahm@in \begin{longtable}{@{}l >{\raggedright\arraybackslash}p{.27\textwidth} r r r >{\raggedright\arraybackslash}p{.36\textwidth}@{}}\toprule \S & Section & Page & Stat. & Decl. & Lean modules\\\midrule\endhead \the\ahm@rows\bottomrule\end{longtable}}{}} % ---- references ---------------------------------------------------------------------------------------------------- % tools/refs.py writes generated/references.tex from ledger/refs.yaml, one \bibitem per verified entry. \renewcommand{\bibliofont}{\small\raggedright} % ragged, as in the GAI-MUA papers: DOIs and URLs do not stretch lines \makeatother \newcommand{\AHMepigraph}[2]{% \begin{flushright}\begin{minipage}{0.78\textwidth}\raggedleft\itshape #1\par\smallskip \normalfont\small #2\end{minipage}\end{flushright}\bigskip} \endinput