\documentclass[11pt,reqno]{amsart} \usepackage{jaswal} \usepackage{tikz} \newcommand{\Q}{\mathbb{Q}} \newcommand{\Z}{\mathbb{Z}} \newcommand{\R}{\mathbb{R}} \newcommand{\C}{\mathbb{C}} \newcommand{\PP}{\mathbb{P}} \newcommand{\GL}{\mathrm{GL}} \newcommand{\SL}{\mathrm{SL}} \newcommand{\tri}[4]{(#1,#2,#3)\if\relax\detokenize{#4}\relax\else/#4\fi} \newcommand{\Mt}{\mathcal{M}(\theta)} \newcommand{\oc}{\mathcal{M}} \newcommand{\Mcyc}{\mathcal{M}_{\mathrm{cyc}}(\theta)} \newcommand{\amb}{\mathcal{L}(\theta)} \newcommand{\Qc}{\mathcal{Q}} \newcommand{\Qt}{\widetilde{\mathcal{Q}}} \newcommand{\Fone}{F_1} \newcommand{\FF}{F\cup F_1} \newcommand{\Ha}[1]{H^1_{#1}} \newcommand{\Hr}[1]{H^1(X,\Sigma)_{#1}} \newcommand{\Hol}[1]{H^{1,0}_{#1}} \newcommand{\Un}{U} \newcommand{\rk}{\operatorname{rank}} \newcommand{\Ann}{\operatorname{Ann}} \newcommand{\Res}{\operatorname{Res}} \newcommand{\frc}[1]{\{#1\}} \newcommand{\dimA}{D} \newcommand{\Deg}{\textup{(Deg)}} \newcommand{\Sym}{\textup{(Sym)}} \newcommand{\Lfour}{\textup{(L)}} \begin{document} \title[Orbit closures of generic rational quadrilaterals]{Orbit closures of generic rational quadrilaterals} \author{Manvir Jaswal} \thanks{This paper is Part~III of a series on orbit closures of unfoldings of rational polygons: Parts~I \cite{P23} and~II \cite{P25} treat triangles, Part~III quadrilaterals and Part~IV \cite{P30} polygons with at least five sides.} \address{Toronto, Canada} \email{manvirjaswal@icloud.com} \urladdr{https://manvirjaswal.github.io} \date{November 24, 2026} \subjclass[2020]{Primary 37C83; Secondary 32G15, 30F30, 11A07} \keywords{Rational billiards, translation surfaces, orbit closures, affine invariant submanifolds, quadrilaterals} \hypersetup{pdftitle={Orbit closures of generic rational quadrilaterals},pdfauthor={Manvir Jaswal},pdfkeywords={Rational billiards, translation surfaces, orbit closures, affine invariant submanifolds, quadrilaterals}} \begin{abstract} Delecroix and R\"uth conjectured that their lists of admissible and reduced rational triangle and quadrilateral types whose unfoldings do not have dense orbits in their ambient strata are complete, and they proved this for quadrilaterals with angles $2\pi a_i/N$ when $N\le32$. We prove the conjecture for quadrilaterals, for the generic quadrilateral with given angles. For every admissible and reduced type outside their seven quadrilateral exceptions, the orbit closure of the unfolding of the generic member is a connected component of a stratum of Abelian differentials if $N$ is odd or $N\equiv2\pmod4$, and the locus of holonomy double covers of a component of a stratum of quadratic differentials if $4$ divides $N$. The proof reads the rank of the orbit closure off a set of characters of the deck rotation of the unfolding, a cyclic cover of the sphere. Mirzakhani and Wright's rules, as extended for triangles in the two earlier papers of this series, constrain this set, and two further inputs bring in the orbit closures of triangles: the collision of two vertices, through Mirzakhani and Wright's boundary theorem, and symmetric members of the family of cyclic covers, which cover unfoldings of triangles. Parts of the proof, including a census up to $N=1000$, are computer-assisted. \end{abstract} \maketitle \contents \section{Introduction}\label{sec:intro} A billiard trajectory in a polygon whose angles are rational multiples of $\pi$ unfolds to a straight line on a translation surface $(X,\omega)$, the \emph{unfolding} of the polygon \cite{ZemljakovKatok}. The group $\GL^+(2,\R)$ acts on translation surfaces, and by the theorems of Eskin, Mirzakhani and Mohammadi the closure of the orbit of $(X,\omega)$ in its stratum is an affine invariant submanifold \cite{EskinMirzakhani,EMM}. To a tuple $\theta$ of angles of a rational polygon Mirzakhani and Wright associate an affine invariant submanifold $\mathcal M(\theta)$, which, in their words, ``can be defined as the orbit closure of the unfolding of the generic polygon with these angles. One long term goal is to compute these $\mathcal M(\theta)$ for all $\theta$'' \cite[\S1]{MirzakhaniWright}. For a triangle, $\mathcal M(\theta)$ is the orbit closure of its unfolding, and Part~II shows that it is the ambient locus of the triangle for every scalene triangle outside a list of exceptions \cite[Theorem~1.1]{P25}. This paper proves the corresponding statement for quadrilaterals. A quadrilateral has \emph{type} $\theta=(a_1,a_2,a_3,a_4)$, where $a_1\le a_2\le a_3\le a_4$ are positive integers with greatest common divisor $1$ and sum $N$, if its interior angles are $2\pi a_i/N$ in some cyclic order. Following Delecroix and R\"uth \cite[\S4]{DelecroixRuth}, $\theta$ is \emph{admissible} if no angle is $\pi$, and an admissible type is \emph{reduced} unless $a_1=a_21000$ and a census for $N\le1000$; the other types have a separate argument (\cref{sec:supp}). \begin{figure}[b] \centering \begin{tikzpicture}[x=1cm,y=1cm,line join=round,line cap=round] \draw[line width=0.5pt] (0,0) -- (3,0) -- (2.10,1.97) -- (1.56,1.97) -- cycle; \draw[line width=0.3pt,dashed] (1.56,1.97) -- (1.9,2.4) -- (2.10,1.97); \node[below left] at (0,0) {$l$}; \node[below right] at (3,0) {$m$}; \node[left] at (1.56,1.97) {$i$}; \node[right] at (2.10,1.97) {$j$}; \draw[->,>=stealth,line width=0.4pt] (3.5,1.0) -- (4.3,1.0); \begin{scope}[xshift=4.8cm] \draw[line width=0.5pt] (0,0) -- (3,0) -- (1.9,2.4) -- cycle; \node[below left] at (0,0) {$l$}; \node[below right] at (3,0) {$m$}; \node[above] at (1.9,2.4) {$i=j$}; \end{scope} \node at (3.9,-0.9) {(a)}; \begin{scope}[xshift=10.9cm] \draw[line width=0.5pt] (0,2.4) -- (0.95,0.75) -- (0,-0.15) -- (-0.95,0.75) -- cycle; \draw[line width=0.3pt,dashed] (0,2.4) -- (0,-0.15); \node[above] at (0,2.4) {$l$}; \node[below] at (0,-0.15) {$m$}; \node[right] at (0.95,0.75) {$i$}; \node[left] at (-0.95,0.75) {$j$}; \node at (0,-0.9) {(b)}; \end{scope} \end{tikzpicture} \caption{(a) When two vertices $i$ and $j$ of a quadrilateral collide, and their angles sum to more than $\pi$, the quadrilateral degenerates to a triangle; its angle at the merged vertex is the sum of the two angles minus $\pi$ (\cref{ssec:collision}). (b) A kite with equal angles at $i$ and $j$ is made of two copies of a triangle, glued along the side joining $l$ and $m$, and its unfolding covers that of the triangle (\cref{prop:sym}).}\label{fig:collision} \end{figure} \subsection{Earlier results}\label{ssec:earlier} For $N\le32$, \cref{thm:main} is the theorem of Delecroix and R\"uth stated above, with the ambient strata read as the ambient loci defined here; our proof does not use it. For the types with two right angles it is a theorem of Apisa, who determines $\mathcal M(\theta)$ for the angles $(\frac an,\frac bn,\frac12,\frac12)\pi$ \cite[Theorem~1.10]{Apisa}. For the types with two angles summing to $\pi$, Apisa and Aygun prove, by other means, that the generic member has an orbit closure as big as possible \cite[Corollary~1.3]{ApisaAygun}, which for the reduced types of genus at least $2$ is $\amb$; our proof for these types is in \cref{sec:supp}. The types that are not reduced are those of the parallelograms and isosceles trapezoids other than rectangles, and for them Apisa determined $\mathcal M(\theta)$ \cite[Theorem~1.9]{Apisa}. On the seven types \eqref{eq:list} the theorem is silent. For the first six, Eskin, McMullen, Mukamel and Wright prove that the saturation of the cyclic forms, which is $\Mt$, is a primitive, irreducible invariant subvariety of dimension $4$ \cite[Theorem~1.1]{EMMW}, while $\amb$ has dimension $8$, $6$, $5$, $8$, $8$, $8$ for them (\cref{ssec:full}). For $(2,2,3,13)$, where $\amb$ has dimension $8$, Delecroix and R\"uth prove that the unfoldings lie in the orbit closure of the unfolding of the triangle with angles $(\frac3{20},\frac4{20},\frac{13}{20})\pi$ and conjecture that this orbit closure has dimension $4$ \cite[Theorem~1.2 and Conjecture~1.1]{DelecroixRuth}; Delecroix announces a positive answer to this conjecture, from joint work with Kai Fu \cite[pp.~48--49]{DelecroixHab}; his slides of June 2025, on joint work with K.~Fu and B.~Zykoski, list this orbit closure with dimension~$4$ and rank~$2$ \cite[slide~12]{DelecroixJHH80}. \subsection{The proof}\label{ssec:method} The deck rotation $T$ of the cyclic cover acts on the cohomology of $X$, and the absolute projection of the tangent space of $\Mt$ at a generic point of the family $\Mcyc$ of cyclic covers is a sum of eigenspaces of $T$ (\cref{prop:R0}). So the rank of $\Mt$ is read off the set $A$ of the characters $x\in\Z/k$ whose eigenspace is tangent to $\Mt$ (the set called $S$ in Parts~I and~II), and the theorem requires that $A$ be the set of all characters with a non-zero eigenspace in the absolute tangent space of $\amb$, together with a statement on relative cohomology when $k$ is even. This is Mirzakhani and Wright's frame \cite[\S7]{MirzakhaniWright}, used also in \cite{P25,P23}. Three of the rules that constrain $A$ are the analogues of rules for triangles, with proofs that follow those of \cite{P25,P23}: $A$ is symmetric and is permuted as a block by the units of $\Z/k$; a rule that comes from differentiating a holomorphic eigenform along $\Mt$ adds characters to $A$; and a rule of the same kind puts relative classes into the tangent space (\cref{sec:rules}). The first two are Mirzakhani and Wright's \cite[Lemmas~7.6 and~7.10 and Proposition~7.3]{MirzakhaniWright}, the second in a more general form. Mirzakhani and Wright write their analysis for polygons with $n$ vertices and assume $n=3$ at key places \cite[\S7]{MirzakhaniWright}. Two of these places change for $n=4$. The eigenspace decomposition of \cref{prop:R0} rests on the irreducibility of the monodromy on the eigenspaces of generic characters (\cref{lem:irreducible}), which they observe would extend their Corollary~7.9 beyond triangles. And for $n=4$ we do not use their Proposition~7.3(2), whose extension to $n>3$ they pose as Problem~7.4: the differential rule needs only that a certain quotient of eigenforms is not exact (\cref{thm:L,lem:nonexact}). Two inputs have no counterpart in the triangle papers. Both use the full ambient rank of the good triangles in \cref{def:good}, supplied by \cite[Theorem~1.1]{P25}. The first is the collision of two vertices, a device of Apisa \cite[Sublemma~11.3]{Apisa} and of Apisa and Aygun \cite[Lemma~12.3]{ApisaAygun}. By Mirzakhani and Wright's description of the boundary of an affine invariant submanifold \cite{MWBoundary}, the tangent space of a part of the boundary of $\Mt$ that contains the limit, the unfolding of the collision triangle, is cut out of the tangent space of $\Mt$, and we apply this eigenspace by eigenspace (\cref{thm:Deg}). The second comes from the symmetric members, which bound the rank of $\Mt$ from below (\cref{prop:sym}). Both steps mark regular points on the triangle's unfolding, and use that this does not change the rank of an orbit closure (\cref{lem:marks}, whose first part, when the triangle's unfolding has a zero, is a lemma of Apisa and Wright \cite[Lemma~2.1]{ApisaWrightMarked}). The rules are formal statements about subsets of $\Z/k$, and the main part of the paper shows that they force $A$ to be the set of all characters of the absolute tangent space of $\amb$ in the cases they reach. For the types with $N>1000$ in which no two angles sum to $\pi$ this is arithmetic, with bounded computations. Once $A$ contains the units, the differential rule gives the rest, by an averaging argument over residue classes (\cref{lem:units}); and the units are in $A$ as soon as one of the three triangles obtained by collisions is connected and good, in the sense of \cref{def:good}, which excludes the isosceles triangles and the exceptions of \cite{P25} (\cref{cor:one-good}). The types for which no collision gives such a triangle are classified, and treated one family at a time (\cref{sec:odd,sec:even}); for even $k$ the classification is longer, and it ends with a table of $46$ tuples. The types with two angles summing to $\pi$ behave differently and are treated in \cref{sec:supp}. For $N\le1000$, when no two angles sum to $\pi$, the rules are applied by computation (\cref{prop:census}). They do not reach $32$ of these types and three types with two angles summing to $\pi$, all with $N\le32$; for each of these $35$ types we exhibit one quadrilateral whose unfolding has an orbit closure of the dimension of $\amb$, by Wright's cylinder deformation theorem \cite{WrightCyl} and exact computations of cylinders (\cref{prop:cert}). To pass from $A$ to $\Mt$ we use, for odd $k$, Mirzakhani and Wright's theorem that an affine invariant submanifold of full rank is a component of a stratum or the locus of hyperelliptic surfaces in one \cite{MirzakhaniWright}; for even $k$ we count dimensions, the relative rule supplying the relative part (\cref{sec:endgames}). When $k$ is an odd prime, one collision triangle of full rank suffices (\cref{cor:prime}). \subsection{Computations}\label{ssec:computations} Finite computations enter the proofs: the census of the types with $N\le1000$, the cylinder decompositions of $35$ quadrilaterals, and finite ranges inside some arguments of \cref{sec:odd,sec:even,sec:supp}. Each fact is stated where it is used. The computations decide exactly, with integers, rational numbers and arithmetic in number fields; where floating point enters a decision, its result is checked exactly or its error is bounded. For the cylinders we follow Delecroix and R\"uth's procedure for bounding orbit closures from below \cite[\S3]{DelecroixRuth}, with the flatsurf software \cite{flatsurf,libflatsurf}. The programs, their output and instructions for rerunning them are deposited \cite{Record}. \section{Unfoldings, characters and the ambient locus}\label{sec:setting} This section sets up the objects of \cref{thm:main}. The unfolding of a quadrilateral of a given admissible type is a cyclic cover of the sphere branched over four points, and the tangent space of the orbit closure of the generic member splits into eigenspaces of the deck rotation; the main result of the section, \cref{prop:R0}, says that its absolute part is a sum of whole eigenspaces. Along the way we compute the genus and show that for reduced types of genus at least two the automorphisms of the generic member preserving the line of its form are the deck rotations (\cref{lem:aut}). \subsection{Types and the cyclic cover}\label{ssec:types} A \emph{type} is a quadruple $\theta=(a_1,a_2,a_3,a_4)$ of positive integers with $a_1\le a_2\le a_3\le a_4$ and $\gcd(a_1,a_2,a_3,a_4)=1$; we put $N=a_1+a_2+a_3+a_4$. A quadrilateral \emph{of type $\theta$} is a simple quadrilateral whose interior angles, in some cyclic order, are $2\pi a_i/N$; they sum to $2\pi$, and one of them may exceed $\pi$. Following Delecroix and R\"uth \cite[\S4]{DelecroixRuth}, $\theta$ is \emph{admissible} if $2a_i\ne N$ for every $i$ (no angle is $\pi$), and an admissible type is \emph{reduced} unless $a_1=a_21$, and this order is the product of the ramification indices of $X\to X/\langle T\rangle$ and of $f$; so $X\to X/\langle T\rangle$ is ramified over $\xi$, and $\xi$ is one of $z_1,\dots,z_4$. Let $B_1$ be the number of such unramified preimages over all $B$ branch values; then $B_1\le4$. Over each branch value the ramification of $f$ is $\sum(e_\xi-1)\ge\sum_{e_\xi\ge2}e_\xi/2$, the sums over the preimages $\xi$, where $e_\xi$ is the ramification index of $f$ at $\xi$; summing over the $B$ branch values, the total ramification of $f$ is at least $(Bd-B_1)/2$. Riemann--Hurwitz for $f\colon\PP^1\to\PP^1$ gives total ramification $2d-2$, so $4d-4\ge Bd-B_1\ge4d-4$. Hence $B=4$, $B_1=4$, every ramified preimage of a branch value has $e_\xi=2$, and $f$ is unramified elsewhere; in particular $z_1,\dots,z_4$ are unramified points of $f$ over the four branch values, and the ramified points of $f$ are not among them. Since $\tau^*\omega=\mu\omega$ with $\mu$ a root of unity, the flat metric $\lvert\omega\rvert$ is $G$-invariant and descends to cone metrics on $X/\langle T\rangle$ and $X/G$, and $f$ is a local isometry off its ramification points. On $X/\langle T\rangle$ the metric has cone angle $2\pi q_i/k$ at $z_i$ and is smooth elsewhere. Let $2\pi\nu(w)$ be the cone angle of $X/G$ at a branch value $w$. A ramified point $\xi$ of $f$ over $w$ has $e_\xi=2$ and is a smooth point of $X/\langle T\rangle$, so $\nu(w)=1/2$; an unramified point $z_i$ over $w$ has $q_i/k=\nu(w)$. Consequently a vertex $z_i$ with $q_i/k\ne1/2$ lies over a branch value with no ramified preimage: its fiber consists of $d$ vertices $z_j$, all with $q_j/k=q_i/k$. If all four $q_i/k$ were $1/2$, then $k=2$ and $\theta=(1,1,1,1)$, of genus one. Otherwise some $q_i/k=\nu\ne1/2$, and not all of the other vertices have $q_j/k=1/2$: else $d\nu+(4-d)/2=2$ would give $\nu=1/2$. So a second fiber of $d$ vertices with a common value $\ne1/2$ exists, and $2d\le4$. Thus $d=2$, and $\{q_1,\dots,q_4\}$ consists of two equal pairs; the two values differ, since four equal $q_i$ would all equal $k/2$. So $a_1=a_2k$ collide and $\gcd(k,q_l,q_m)=1$ for the other two indices $l,m$, the surfaces $X_z$ converge to the unfolding of a triangle, and by Mirzakhani and Wright's theorem on the boundary of an affine invariant submanifold the tangent space of $\Mt$ contains a copy of the tangent space of a boundary component through that unfolding. This section turns this into a rule for the set $A$ of \cref{prop:R0}: if the triangle's orbit closure has the largest possible rank, the characters that are generic for the triangle lie in $A$ (\cref{thm:Deg}). The limit surface may have marked points of cone angle $2\pi$, and we first show that marking such points does not lower ranks. \subsection{Marked points}\label{ssec:marks} Following Mirzakhani and Wright, a stratum may have marked points, and a marked point where $\omega$ does not vanish is a zero of $\omega$ of order zero; an affine invariant submanifold of such a stratum is a properly immersed connected submanifold defined locally in period coordinates by real linear equations with zero constant term \cite[\S\S2.1 and~2.2]{MWBoundary}. So near each of its points an affine invariant submanifold is a finite union of linear subspaces of the period chart, its \emph{tangent spaces} at the point; for a surface with marked set $\Sigma'$ the chart is $H^1(\,\cdot\,,\Sigma';\C)$, $p$ denotes the map to absolute cohomology, and the rank is $\frac12\dim p(L)$ for a tangent space $L$. The rank does not depend on $L$ or on the point, the submanifold being connected. Eskin and Mirzakhani call an ergodic $\SL(2,\R)$-invariant probability measure $\nu$ on the surfaces of area one of a stratum \emph{affine} if its support is the locus of area one $\mathcal M_1$ of an affine invariant submanifold $\mathcal M$ and, near each point of $\mathcal M$, the measure $t^{2m-1}\,dt\,d\nu$ on $\mathcal M$, in the coordinates $tY$ with $t>0$ and $Y\in\mathcal M_1$, where $m=\dim_\C\mathcal M$, is a constant multiple of Lebesgue measure on the tangent spaces \cite[Definition~1.1]{EskinMirzakhani}; in particular $\nu(E)=0$ for a Borel set $E\subset\mathcal M_1$ whose cone $\{tY:\ t>0,\ Y\in E\}$ is null for Lebesgue measure on each tangent space. They prove that every ergodic probability measure on the surfaces of area one that is invariant under the upper triangular subgroup of $\SL(2,\R)$ is $\SL(2,\R)$-invariant and affine \cite[Theorem~1.4]{EskinMirzakhani}, and with Mohammadi that the locus of area one of every orbit closure is the support of such a measure \cite[Theorem~2.1]{EMM}. These results hold in strata with marked points \cite[Introduction]{EskinMirzakhani}. We use the marked case for one orbit closure, $\mathcal N^P$ below. \begin{lemma}\label{lem:marks} Let $(Y,\eta)$ be a translation surface with zero set $\Sigma_Y$, in the stratum $\mathcal H$ whose marked points are the zeros, and let $P\subset Y\setminus\Sigma_Y$ be a non-empty finite set. Let $\mathcal H^P$ be the stratum in which the points of $P$ are marked as well, and $\mathcal N\subset\mathcal H$ and $\mathcal N^P\subset\mathcal H^P$ the orbit closures of $(Y,\eta)$ and $(Y,\eta;P)$. \begin{enumerate} \item\label{it:marks-onto} At every point of $\mathcal N^P$, the restriction $H^1(\,\cdot\,,\Sigma_Y\cup P;\C)\to H^1(\,\cdot\,,\Sigma_Y;\C)$ maps every tangent space $L$ of $\mathcal N^P$ onto a tangent space of $\mathcal N$. In particular $\dim p(L)=2\rk\mathcal N$, and $\rk\mathcal N^P=\rk\mathcal N$. \item\label{it:marks-B} Every affine invariant submanifold of $\mathcal H^P$ that contains $(Y,\eta;P)$ has rank at least $\rk\mathcal N$. \end{enumerate} \end{lemma} When $\Sigma_Y\ne\emptyset$, part \ref{it:marks-onto} is a lemma of Apisa and Wright; the proof below does not use a zero of $\eta$. For an affine invariant submanifold $\mathcal M$ of a stratum $\mathcal H$, with $\mathcal H^{*n}$ the surfaces of $\mathcal H$ with $n$ distinct marked points that are not zeros and $\pi\colon\mathcal H^{*n}\to\mathcal H$ the forgetful map, they call an affine invariant submanifold $\mathcal N$ of $\mathcal H^{*n}$ an \emph{$n$-point marking} over $\mathcal M$ if $\pi(\mathcal N)$ is a dense subset of $\mathcal M$ \cite[\S1]{ApisaWrightMarked}. They prove that the linear equations defining the fibers of $\mathcal N$ over $\mathcal M$ can be chosen to hold locally on $\mathcal N$, and that each fiber is empty or has dimension $\dim\mathcal N-\dim\mathcal M$ \cite[Lemma~2.1]{ApisaWrightMarked}. By Step~1 below, $\mathcal N^P$ is a point marking over $\mathcal N$ in this sense. Their proof uses that the image of the marking contains an open subset of the base (compare \cite[Lemmas~2.14 and~2.16]{ApisaMarkedGT}), for which we include an argument (Steps~3 and~4). \begin{proof} Let $\mathfrak f\colon\mathcal H^P\to\mathcal H$ be the map that forgets the points of $P$. It is continuous, commutes with $\GL^+(2,\R)$ and preserves the area. In period coordinates it is the restriction $\mathrm{res}\colon H^1(Y,\Sigma_Y\cup P;\C)\to H^1(Y,\Sigma_Y;\C)$, a surjective linear map with $p\circ\mathrm{res}=p$. Its kernel is the annihilator of the image of $H_1(Y,\Sigma_Y)$ in $H_1(Y,\Sigma_Y\cup P)$, so the kernels form a flat subbundle of the bundle of relative cohomology over $\mathcal H^P$. At a surface with automorphisms the period chart is the quotient of an open subset of relative cohomology by a finite group, and the statements below are made on that open subset, for the lifts, which the group permutes. \emph{Step 1: the image.} $\mathfrak f$ maps the orbit of $(Y,\eta;P)$ onto that of $(Y,\eta)$, and $\mathcal N$ is closed; so $\mathfrak f(\mathcal N^P)\subset\mathcal N$, and $\mathfrak f(\mathcal N^P)$ contains the orbit of $(Y,\eta)$, which is dense in $\mathcal N$. The map $\mathfrak f$ need not be proper, so $\mathfrak f(\mathcal N^P)$ need not be closed, and a dense invariant subset can be small; the next two steps deal with this. \emph{Step 2: the measure.} Let $\mathcal N^P_1$ and $\mathcal N_1$ be the loci of area one. $\mathcal N^P_1$ is the support of an ergodic $\SL(2,\R)$-invariant probability measure $\nu$ that is affine. Then $\mathfrak f_*\nu$ is a probability measure on the surfaces of area one of $\mathcal H$, invariant and ergodic under $\SL(2,\R)$, hence ergodic under the diagonal subgroup by Moore's ergodicity theorem \cite{Moore} (as in \cite[proof of Lemma~11.1]{EMM}), and so under the upper triangular subgroup, which contains it. By Eskin and Mirzakhani's theorem, in the stratum $\mathcal H$, $\mathfrak f_*\nu$ is affine: its support is the locus of area one of an affine invariant submanifold $\mathcal N'$, on which it is locally Lebesgue measure in the sense above. As $\mathfrak f$ is continuous, the support of $\mathfrak f_*\nu$ is the closure of $\mathfrak f(\mathcal N^P_1)$, which by Step~1 lies in $\mathcal N_1$ and contains a dense subset of it. So $\mathcal N'=\mathcal N$. \emph{Step 3: one tangent space with full image.} Let $d=\dim\mathcal N$. The manifold underlying $\mathcal N^P$ is second countable, so $\mathcal N^P_1$ is the union of countably many compact sets $K_1,K_2,\dots$, each contained in one period chart of $\mathcal H^P$ and in one tangent space $L_i$ of $\mathcal N^P$ there, and so small that $\mathfrak f(K_i)$ lies in one period chart of $\mathcal H$, in which $\mathcal N$ is a finite union of linear subspaces $E_1,\dots,E_s$ of dimension $d$, and in finitely many of the open sets on which the measure of Step~2 is Lebesgue measure on such a subspace. A neighborhood of a point of $K_i$ in $L_i$ is mapped into $\mathcal N$, so a non-empty open subset of the linear space $\mathrm{res}(L_i)$ lies in $E_1\cup\dots\cup E_s$; a non-empty open subset of a real vector space is not contained in finitely many proper subspaces, so $\mathrm{res}(L_i)\subset E_j$ for some $j$. Suppose that $\dim\mathrm{res}(L_i)k$ and $k-q_l-q_m=q_i+q_j-k$: when the vertices $i$ and $j$ of a quadrilateral of type $\theta$ collide, their angles $\pi q_i/k$ and $\pi q_j/k$ are replaced by one angle $\pi(q_i+q_j-k)/k$. If no two angles of $\theta$ sum to $\pi$, each of the three splittings of the four indices into two pairs contains exactly one short pair. \begin{theorem}[Collision criterion]\label{thm:Deg} Let $\{l,m\}$ be a short pair with $\gcd(k,q_l,q_m)=1$, and $\Delta=\Delta_{lm}$. Suppose that the orbit closure of the unfolding of $\Delta$ has rank $\lvert F(\Delta)\rvert/2$. Then every $x\in\FF$ with $xq_l$, $xq_m$, $x(q_l+q_m)\not\equiv0\pmod k$ lies in $A$. \end{theorem} Colliding two vertices and passing to the boundary is a device of Apisa \cite[Sublemma~11.3]{Apisa} and of Apisa and Aygun \cite[Lemma~12.3]{ApisaAygun}; here the boundary theorem is applied eigenspace by eigenspace. The rest of this subsection is the proof. Let $i,j$ be the other two indices, $\mu=q_i+q_j-k=k-q_l-q_m$, with $0<\mu0$ for the genus $g_Y$ of $Y$, as $g_i,g_j\le k/2$. For $c\not\equiv0$, the $\zeta^c$-eigenspace $H^1(Y;\C)_c$ of $T_Y^*$ has dimension $\nu-2$ if the number $\nu$ of non-integers among $c\mu/k$, $cq_l/k$, $cq_m/k$ is at least $2$ \cite[Corollary~6.2]{MirzakhaniWright}, and $H^1(Y;\C)_0=0$ as $Y/\langle T_Y\rangle$ has genus zero. So $H^1(Y;\C)_c$ is a line if $c\mu,cq_l,cq_m\not\equiv0\pmod k$ and is zero otherwise, and \begin{equation}\label{eq:Y-odd} \dim\bigoplus_{c\in F(\Delta)}H^1(Y;\C)_c=\lvert F(\Delta)\rvert , \end{equation} where for even $k$ the sum is over the odd $c$ with a non-zero eigenspace. \emph{The sequence.} A point $X_z$ of $\Mcyc$ is generic if and only if the conclusion of \cref{lem:aut} holds for it and it is not in the self-crossing locus of $\Mt$ (\cref{ssec:aut}). For $a\in\C^\times$ and $b\in\C$, the substitution $z\mapsto az+b$ identifies $(X_{az+b},\omega_{az+b})$ with $(X_z,a^{-1}\omega_z)$, and the two conditions are invariant under multiplication of the form by a constant; so the set of $z$ with $X_z$ generic is invariant under the affine maps of $\C$, and it is dense in the configuration space. Hence there are $\delta_n\to0$ and configurations $z^{(n)}$ with $X_n=X_{z^{(n)}}$ generic, \[ z^{(n)}_l=z_l,\qquad z^{(n)}_m=z_m,\qquad \lvert z^{(n)}_i-z_0\rvert<\delta_n,\qquad \lvert z^{(n)}_j-z_0\rvert<\delta_n . \] Let $\omega_n=\omega_{z^{(n)}}$, $\Sigma_n$ its zero set, $V^{(n)}=T_{X_n}\Mt\subset H^1(X_n,\Sigma_n;\C)$, and choose $\varepsilon_n\to0$, decreasing, with $\delta_n/\varepsilon_n\to0$. Let $D_n$ be the union of the disc $\lvert z-z_0\rvert<\varepsilon_n$ and of the discs $\lvert z-z_s\rvert<\varepsilon_n$ for those $s\in\{l,m\}$ with $q_s\nmid k$, and $\mathcal U_n\subset Y$ the preimage of $D_n$. The $\mathcal U_n$ are decreasing neighborhoods of $\Sigma_Y\cup P$ with intersection $\Sigma_Y\cup P$. \emph{Convergence.} We show that $(X_n,\omega_n,\Sigma_n)$ converges to $(Y,\eta,\Sigma_Y\cup P)$ in the sense of Mirzakhani and Wright \cite[Definition~2.2]{MWBoundary}: there are maps $g_n$ from $Y\setminus \mathcal U_n$ to $X_n$, diffeomorphisms onto their images, such that $g_n^*\omega_n\to\eta$ uniformly on compact subsets of $Y\setminus(\Sigma_Y\cup P)$ and the injectivity radius at the points of $X_n$ outside the image of $g_n$ (the largest radius of an embedded flat disc about the point that contains no zero of $\omega_n$) tends to $0$ uniformly. On $\lvert z-z_0\rvert\ge\varepsilon_n$, including $z=\infty$, the function $\upsilon_n(z)=\bigl((z-z^{(n)}_i)/(z-z_0)\bigr)^{q_i}\bigl((z-z^{(n)}_j)/(z-z_0)\bigr)^{q_j}$ tends to $1$ uniformly, as $\delta_n/\varepsilon_n\to0$, so for large $n$ it has a holomorphic $k$-th root $\upsilon_n^{1/k}$ there that tends to $1$ uniformly. As $q_i+q_j=k+\mu$, the equation of $X_n$ is $y^k=(z-z_0)^k\,\upsilon_n(z)\,(z-z_0)^{\mu}(z-z_l)^{q_l}(z-z_m)^{q_m}$, and \[ g_n(y,z)=\bigl(y\,(z-z_0)\,\upsilon_n(z)^{1/k},\,z\bigr) \] is a biholomorphic map from $Y\setminus \mathcal U_n$ onto the part of $X_n$ over $\PP^1\setminus D_n$, with $g_n\circ T_Y=T\circ g_n$ and $g_n^*\omega_n=(z-z_0)^2\,\upsilon_n(z)^{1/k}(z-z^{(n)}_i)^{-1}(z-z^{(n)}_j)^{-1}\eta$, whose factor tends to $1$ uniformly there; every compact subset of $Y\setminus(\Sigma_Y\cup P)$ lies in $Y\setminus \mathcal U_n$ for large $n$, which gives the first condition. The rest of $X_n$ lies over $D_n$. One of $q_i,q_j$, say $q_i$, does not divide $k$, since two proper divisors of $k$ have sum at most $k$; so the points over $z^{(n)}_i$ are zeros of $\omega_n$. After the substitution $z=z_0+\varepsilon_nw$, the density of $\lvert\omega_n\rvert$ over $\lvert w\rvert<1$ is at most a constant times $\varepsilon_n^{\alpha}\lvert w-w_i\rvert^{q_i/k-1}\lvert w-w_j\rvert^{q_j/k-1}$, where $z^{(n)}_i=z_0+\varepsilon_nw_i$ and $z^{(n)}_j=z_0+\varepsilon_nw_j$, and its integral without the factor $\varepsilon_n^\alpha$ along the segment from $w_i$ to any point of $\lvert w\rvert<1$ is bounded uniformly in $w_i$ and $w_j$: in the arc length $t\le2$ from $w_i$ it is at most $\int_0^2t^{q_i/k-1}\lvert t-t_j\rvert^{q_j/k-1}dt$, $t_j$ the coordinate of the projection of $w_j$, if $q_j1$; and the factor $\lvert w-w_j\rvert^{q_j/k-1}$ is at most $2^{q_j/k-1}$ if $q_j>k$, and $t^{q_i/k-1}\le2^{q_i/k-1}$ if $q_i>k$. So every point of $X_n$ over $\lvert z-z_0\rvert<\varepsilon_n$ is at flat distance at most a constant times $\varepsilon_n^\alpha$ from a zero over $z^{(n)}_i$; likewise, for $s\in\{l,m\}$ with $q_s\nmid k$, a point over $\lvert z-z_s\rvert<\varepsilon_n$ is at distance at most a constant times $\varepsilon_n^{q_s/k}$ from a zero over $z_s$. The injectivity radius is at most the distance to a zero, and the second condition follows. As $g_Y0$ and $n$ large, are the inverse of $g_n$ where the injectivity radius is at least $\varepsilon$ \cite[Proposition~2.4]{MWBoundary}. In their construction \cite[\S9.1, proof of Propositions~2.4 and~2.5]{MWBoundary}, $f_n$ is the inverse of $g_n$ on the part of $X_n$ over $\PP^1\setminus D_{n-1}$, maps each component of the part over $D_n$ to a point, and on the annuli over $D_{n-1}\setminus D_n$ interpolates; we take the interpolation with values in the image of $\overline{\mathcal U_{n-1}}$. Let $B_n\subset X_n$ be the part over $\overline{D_n}$. It contains $\Sigma_n$, and each of its components contains a zero of $\omega_n$: a component over the closed disc around $z_0$ maps onto that disc, so it contains a point over $z^{(n)}_i$; a component over the closed disc around $z_s$ contains one of the points over $z_s$, a zero of $\omega_n$ as $q_s\nmid k$. Each component of $\overline{\mathcal U_n}$ is a closed disc that contains exactly one point of $\Sigma_Y\cup P$, and $g_n$ maps $Y\setminus \mathcal U_n$ homeomorphically onto the closure of $X_n\setminus B_n$ and the boundary of $\mathcal U_n$ onto that of $B_n$. Identifying points of $\Sigma_Y\cup P$ does not change relative homology. As $f_n$ is $g_n^{-1}$ on the part of $X_n$ over $\PP^1\setminus D_{n-1}$ and maps the part over $\overline{D_{n-1}}$ into the image of $\overline{\mathcal U_{n-1}}$, excision shows that the map induced by $f_n$ on relative homology is the composite \begin{equation}\label{eq:collapse} H_1(X_n,\Sigma_n;\C)\to H_1(X_n,B_n;\C)\xrightarrow{\ \cong\ }H_1(Y,\overline{\mathcal U_n};\C)\xleftarrow{\ \cong\ } H_1(Y,\Sigma_Y\cup P;\C) \end{equation} with $D_{n-1}$, $\mathcal U_{n-1}$ and the part $B_{n-1}'$ of $X_n$ over $\overline{D_{n-1}}$ in place of $D_n$, $\mathcal U_n$ and $B_n$; by naturality of excision it is also the composite as displayed, where the middle isomorphism is induced by $g_n^{-1}$ on the closure of $X_n\setminus B_n$ and the last one by inclusion. We write $(f_n)_*$ for it. Its first map is onto, as $H_0(B_n,\Sigma_n;\C)=0$. The space of vanishing cycles $\mathcal V_n=\ker(f_n)_*$ is the image of $H_1(B_n,\Sigma_n;\C)$, and the induced map $f_n^*$ on relative cohomology is an isomorphism from $H^1(Y,\Sigma_Y\cup P;\C)$ onto $\Ann(\mathcal V_n)$ \cite[proof of Lemma~9.2]{MWBoundary}. They prove that if surfaces $(X_n,\omega_n)$ of an affine invariant submanifold $\mathcal M$ converge to a connected translation surface in the boundary, then the limit lies in a component $\mathcal M'$ of the boundary of $\mathcal M$, an affine invariant submanifold, whose tangent space is identified by $f_n^*$ with $T_{(X_n,\omega_n)}\mathcal M\cap\Ann(\mathcal V_n)$ for infinitely many $n$ \cite[Theorem~2.9\,(1)]{MWBoundary}. So there are an affine invariant submanifold $\mathcal M'$ of the stratum of $(Y,\eta;\Sigma_Y\cup P)$ containing this surface, a tangent space $L'$ of $\mathcal M'$ at it, and infinitely many $n$ with \begin{equation}\label{eq:boundary} f_n^*(L')=V^{(n)}\cap\Ann(\mathcal V_n). \end{equation} By \cref{lem:marks}\ref{it:marks-B} if $P\ne\emptyset$, and because $\mathcal N\subset\mathcal M'$ if $P=\emptyset$ (as in Step~5 of the proof of \cref{lem:marks}), $\rk\mathcal M'\ge\rk\mathcal N$; so \begin{equation}\label{eq:Lprime} \dim p(L')\ge2\rk\mathcal N=\lvert F(\Delta)\rvert . \end{equation} \emph{Equivariance.} The sets $\Sigma_n$, $B_n$, $\overline{\mathcal U_n}$ and $\Sigma_Y\cup P$ are invariant under the deck transformations, and $g_n\circ T_Y=T\circ g_n$; so each map in \eqref{eq:collapse} commutes with them, and $(f_n)_*T_*=(T_Y)_*(f_n)_*$, the space $\Ann(\mathcal V_n)$ is $T^*$-invariant, and $f_n^*\circ T_Y^*=T^*\circ f_n^*$. As $X_n$ is generic, $T^*V^{(n)}=V^{(n)}$, and $V^{(n)}$ lies in the sum of the eigenspaces of odd character if $k$ is even (\cref{prop:R0,ssec:ambient}). By \eqref{eq:boundary}, $L'$ is $T_Y^*$-invariant, and for even $k$ it lies in the sum of the eigenspaces of odd character. So $L'$ is the sum of its eigenspaces $L'_c$, and $p(L')=\bigoplus_cp(L'_c)$ with $p(L'_c)\subset H^1(Y;\C)_c$, over odd $c$ if $k$ is even. By \eqref{eq:Y-odd} and \eqref{eq:Lprime}, $p(L'_c)=H^1(Y;\C)_c$ for every $c\in F(\Delta)$. \emph{Transfer.} Let $x\in\FF$ with $xq_l,xq_m,x(q_l+q_m)\not\equiv0$. As $\mu\equiv-(q_l+q_m)$, $x\in F(\Delta)$, so there is $\xi\in L'_x$ with $p(\xi)\ne0$. Let $\gamma$ be a closed curve in $Y\setminus(\Sigma_Y\cup P)$ with $\int_\gamma p(\xi)\ne0$. For large $n$, $\gamma$ lies in $Y\setminus\overline{\mathcal U_n}$, and by \eqref{eq:collapse} $(f_n)_*[g_n(\gamma)]=[\gamma]$. For $n$ as in \eqref{eq:boundary}, $f_n^*\xi\in V^{(n)}$ has character $x$, and its value on the absolute cycle $g_n(\gamma)$ is $\xi\bigl((f_n)_*[g_n(\gamma)]\bigr)=\int_\gamma p(\xi)\ne0$. So $p(f_n^*\xi)$ is a non-zero element of $p(V^{(n)})\cap H^1(X_n;\C)_x$, and $x\in A$ by \cref{prop:R0}, at the generic point $X_n$. This proves \cref{thm:Deg}. \subsection{Good triangles}\label{ssec:good} \begin{definition}\label{def:good} A reduced expression $\tri{p_1}{p_2}{p_3}d$ of a rational triangle is \emph{good} if $p_1,p_2,p_3$ are distinct and, up to order, it is not $\tri12c{}$ with $c$ odd, $\tri1c{c+1}{}$ with $c\ge2$, $\tri2c{c+2}{}$ with $c$ odd, or one of \begin{gather*} \tri147{},\quad\tri234{},\quad\tri345{},\quad\tri357{},\quad\tri136{},\\ \tri138{},\quad\tri14{11}{},\quad\tri14{15}{},\quad\tri34{13}{}, \end{gather*} where we omit the denominator $d=p_1+p_2+p_3$. \end{definition} Among triangles with distinct numerators, those excluded here are the triangles of Delecroix and R\"uth's list \cite[Theorem~4.1]{DelecroixRuth} and $\tri123{}$; their denominators are even or equal to $9$ or $15$, and those of the nine listed triangles are at most $20$. For a good triangle $\Delta$, the orbit closure of its unfolding is its ambient locus, which has rank $\lvert F(\Delta)\rvert/2$ \cite[Theorem~1.1 and \S1]{P25}. Isosceles triangles are left out: most connected ones also have rank $\lvert F(\Delta)\rvert/2$ \cite[Theorem~7.7]{Apisa}, but the families of \cref{lem:shapes,lem:shapes-even} contain members whose isosceles collision triangles have rank one, and \cref{ssec:families-odd,ssec:families-even} are needed for them. \begin{corollary}\label{cor:Deg} Let $\{l,m\}$ be a short pair whose collision triangle $\Delta_{lm}$ is connected and good. Then every $x\in\FF$ with $xq_l$, $xq_m$, $x(q_l+q_m)\not\equiv0\pmod k$ lies in $A$. \end{corollary} We write $\mathrm{Deg}(\theta)$ for the set of all $x$ obtained in this way from the short pairs of $\theta$ with connected and good collision triangles. \section{Closure rules}\label{sec:rules} This section proves the rules that constrain the set $A$ of \cref{prop:R0}: it is symmetric and permuted as a block by the units (\cref{prop:R1}); a differential rule adds characters (\cref{thm:L}); a relative rule puts the relative eigenspaces $Z_c$ into $V$ (\cref{thm:relative}); and symmetric members of the type bound the rank from below by the rank of a triangle (\cref{prop:sym}). Throughout, $\theta$ is admissible and reduced with $g\ge2$, $X$ is a generic point of $\Mcyc$, and $V$, $p$, $A$ are as in \cref{ssec:R0}. The first two rules are Mirzakhani and Wright's, who write their analysis for polygons with $n$ vertices and assume $n=3$ at key places \cite[\S7]{MirzakhaniWright}: \cref{prop:R1} is their Lemma~7.6, with the extension in their Lemma~7.10, for four points, and \cref{thm:L} with $x'=-1$ is the rule they draw from their Proposition~7.3. The proofs below follow those of the triangle analogues in Part~I \cite[\S2.4 and~\S3]{P23} and, for the relative rule, in Part~II \cite[Theorem~1.6]{P25}. For $n=4$ we do not use their Proposition~7.3(2), whose extension to $n>3$ they pose as Problem~7.4: the proof of \cref{thm:L} pairs $\alpha\beta/\omega$ with all of $V_{x'}$, not only with $\bar\omega$, and needs only that $\alpha\beta/\omega$ is not exact (\cref{lem:nonexact}). \subsection{Galois conjugates}\label{ssec:galois} Let $H^1$ be the flat bundle over $\Mt$ with fiber $H^1(X';\C)$ at $(X',\omega')$, and $\kappa$ the field of definition of $\Mt$. Wright proves that $H^1=\bigoplus_\rho V_\rho\oplus W'$, where $\rho$ runs over the field embeddings $\kappa\to\C$, $V_{\mathrm{Id}}$ has fiber $p(V)$ at $(X,\omega)$, each $V_\rho$ is a simple flat bundle Galois conjugate to $V_{\mathrm{Id}}$, and $W'$ is a semisimple flat bundle with no subbundle isomorphic to any $V_\rho$ \cite[Theorem~1.5]{WrightField}. Here $V_\rho=\sigma(V_{\mathrm{Id}})$ for any automorphism $\sigma$ of $\C$ extending $\rho$, acting on $H^1(X';\Q)\otimes\C$ through the coefficients: Wright defines $V_\rho$ in this way \cite[proof of Lemma~6.5]{WrightField}, and the choice of $\sigma$ does not matter, as $V_{\mathrm{Id}}$ is defined over $\kappa$ \cite[Theorem~1.5]{WrightField}. The $V_\rho$ are pairwise non-isomorphic \cite[Lemma~6.5]{WrightField}. Filip proves that each such summand underlies a variation of Hodge structure \cite[proof of Theorem~7.3, with Theorem~7.2]{FilipSemisimplicity}; in the form used by Mirzakhani and Wright \cite[\S7.1]{MirzakhaniWright}, at each point the fiber of each summand is the sum of its intersections with $H^{1,0}$ and $H^{0,1}$. For a unit $u$ modulo $k$, let $\sigma_u$ be an automorphism of $\C$ with $\sigma_u(\zeta)=\zeta^u$. Let $W$ be a neighborhood of $[\omega]$ in period coordinates as in \cref{ssec:aut}, so that $\Mt\cap W=V\cap W$; over $\Mt\cap W$ the bundle $H^1$ is the constant bundle $H^1(X;\C)$. \begin{lemma}\label{lem:conj} Let $u$ be a unit modulo $k$. Then $\sigma_u(p(V))=\bigoplus_{x\in uA}\Ha x$, and this is the fiber at $(X,\omega)$ of one of Wright's summands $V_\rho$. At every point of $\Mt\cap W$ the fiber of $V_\rho$ is the sum of its intersections with $H^{1,0}$ and $H^{0,1}$. Two such conjugates of $p(V)$ are equal or meet only in $0$. \end{lemma} \begin{proof} The proof of \cite[Lemma~2.5]{P23} applies, with \cref{prop:R0} in place of its Lemma~2.4. \end{proof} \begin{proposition}\label{prop:R1} $A=-A$. If $u$ is a unit modulo $k$ and $A\cap uA\ne\emptyset$, then $uA=A$. \end{proposition} \begin{proof} The proof of the first two statements of \cite[Lemma~3.4]{P23} applies, with \cref{lem:conj,prop:R0} in place of its Lemmas~2.5 and~2.4; here $uA\subset\FF$, as $n(ux)=n(x)$ and $u$ is odd when $k$ is even. \end{proof} \subsection{Derivatives of eigenforms}\label{ssec:derivative} Classes in $H^1(X,\Sigma;\C)=H^1_c(X\setminus\Sigma;\C)$ are represented by closed smooth $1$-forms with compact support in $X\setminus\Sigma$, and classes in $H^1(X\setminus\Sigma;\C)$ by closed $1$-forms on $X\setminus\Sigma$. By Poincar\'e--Lefschetz duality the pairing \[ \langle[\nu],[\vartheta]\rangle=\int_X\nu\wedge\vartheta \] between the two spaces is perfect. It is $T$-invariant, so it pairs $\Hr c$ with $H^1(X\setminus\Sigma;\C)_{c'}$ to zero unless $c+c'\equiv0$, and it restricts to a perfect pairing between $\Hr c$ and $H^1(X\setminus\Sigma;\C)_{-c}$. If $\vartheta$ is closed on all of $X$, then $\langle w,[\vartheta]\rangle=\int_Xp(w)\wedge\vartheta$. If $\vartheta$ is a meromorphic $1$-form on $X$, holomorphic on $X\setminus\Sigma$, and $f\in\C^\Sigma$, then \begin{equation}\label{eq:pair-res} \langle\delta f,[\vartheta]\rangle=-2\pi i\sum_{s\in\Sigma}f(s)\Res_s\vartheta : \end{equation} $\delta f$ is represented by $d\bigl(\sum_sf(s)\chi_s\bigr)$, where $\chi_s$ equals $1$ near $s$ and is supported in a small disc $D_s$, and Stokes' theorem on $D_s$ minus a smaller disc about $s$ gives the residue. Let $(X_\varpi,\omega_\varpi)$, $\varpi\in W$, be the marked surfaces with period coordinates $\varpi$, and $[\alpha]_{\mathrm{rel}}\in H^1(X,\Sigma;\C)$ the relative class of a holomorphic form $\alpha$ on one of them. For $v\in H^1(X,\Sigma;\C)$ we use Kahn and Wright's path $[\omega]+tv$ \cite[Lemma~2.2]{KahnWright}. Let $\nu$ be a closed form with compact support in $X\setminus\Sigma$ that represents $v$; for small $t$ there is a unique complex structure on the surface, equal to that of $X$ near $\Sigma$, for which $\omega+t\nu$ is holomorphic, and with the identity marking this surface has period coordinates $[\omega]+tv$. For holomorphic $\vartheta$, the next lemma is Kahn and Wright's formula for the derivative of the projection from a stratum to moduli space \cite[Theorem~1.1, Corollary~2.3 and Remark~2.4]{KahnWright}, combined with the variational formula for holomorphic forms; it is \cite[Lemma~3.1]{P23}, whose statement and proof use only that $\omega$ is a holomorphic $1$-form with zero set $\Sigma$. \begin{lemma}\label{lem:derivative} Let $v\in H^1(X,\Sigma;\C)$, and let $\varpi\mapsto\alpha_\varpi$ be a family of holomorphic $1$-forms on the surfaces $X_\varpi$, of class $C^1$ in $t$ along the path $[\omega]+tv$, as forms on the fixed surface, with $\alpha_{[\omega]}=\alpha$. Let $\vartheta$ be a meromorphic $1$-form on $X$, holomorphic on $X\setminus\Sigma$, with at most simple poles. Then \[ \bigl\langle\partial_v[\alpha_\varpi]_{\mathrm{rel}},[\vartheta]\bigr\rangle=\bigl\langle v,[\alpha\vartheta/\omega]\bigr\rangle . \] \end{lemma} The form $\alpha\vartheta/\omega$ on the right is meromorphic on $X$ and holomorphic on $X\setminus\Sigma$. The relative class of a holomorphic form pairs to zero with a form of the third kind. Let $\alpha'$ be holomorphic on $X$ and $\vartheta$ as in \cref{lem:derivative}. Then $[\alpha']_{\mathrm{rel}}$ is represented by $\alpha'-d(\chi F')$, where $\chi$ is a cut-off function equal to $1$ near $\Sigma$ and $F'$ is the primitive of $\alpha'$ near each $s\in\Sigma$ with $F'(s)=0$. As $\alpha'\wedge\vartheta=0$ and $\vartheta$ has at most simple poles, with $w_s$ a local coordinate at $s$, \begin{equation}\label{eq:hol-third} \bigl\langle[\alpha']_{\mathrm{rel}},[\vartheta]\bigr\rangle=\sum_{s\in\Sigma}\lim_{\varepsilon\to0}\oint_{\lvert w_s\rvert=\varepsilon}F'\,\vartheta=0 . \end{equation} The derivative of an eigenform vanishes against the eigenforms outside its Galois conjugate, because that conjugate is a variation of Hodge structure. \begin{lemma}\label{lem:vanish} Let $u$ be a unit modulo $k$, $x\in uA$ with $h(x)\ge1$, and $\alpha\in\Hol x$. There is a holomorphic family $\alpha_\varpi$ of holomorphic $1$-forms on the surfaces of $\Mt\cap W$ with $\alpha_{[\omega]}=\alpha$, whose absolute classes lie in the fiber of the summand $V_\rho$ of \cref{lem:conj}, such that \[ \bigl\langle\partial_v[\alpha_\varpi]_{\mathrm{rel}},[\beta]\bigr\rangle=0\qquad\text{for every }v\in V\text{ and every }\beta\in\Hol b,\ b\notin uA . \] \end{lemma} \begin{proof} This is the proof of \cite[Lemma~3.5]{P23}, with $\alpha$ and $\beta$ in place of $\omega_a$ and $\omega_b$, \cref{lem:conj,prop:R1,lem:derivative} in place of its Lemmas~2.5, 3.4 and~3.1, and $L_{[\omega]}=\bigoplus_{c\in uA}\Hol c$, which contains $\alpha$; the cup product pairs $\Ha c$ with $\Ha b$ only if $c\equiv-b$, and $-b\notin uA$. \end{proof} For real numbers $e_1,\dots,e_4$ and an integer $j$ with $e_i\equiv jq_i/k\pmod 1$ for every $i$, we write $\prod_i(z-z_i)^{e_i}$ for the meromorphic function $y^j\prod_i(z-z_i)^{e_i-jq_i/k}$ on $X$; it does not depend on the choice of $j$ modulo $k$, as $y^k=\prod_i(z-z_i)^{q_i}$, and $T^*$ multiplies it by $\zeta^j$. This is the convention of \eqref{eq:holforms}. Conversely, every meromorphic function on $X$ on which $T^*$ acts by $\zeta^j$ is $S(z)\prod_i(z-z_i)^{e_i}$ for a rational function $S$, since its quotient by $\prod_i(z-z_i)^{e_i}$ is $T$-invariant. \begin{lemma}\label{lem:nonexact} Let $x'\in F$, let $M\ge0$ be an integer, and let $e_1,\dots,e_4$ be real numbers with $e_i\equiv-x'q_i/k\pmod1$ and $e_1+e_2+e_3+e_4=-M-2$. Let $\mathcal R$ be a space of polynomials of degree at most $M$ such that, for $R\in\mathcal R$, the form $\psi_R=R(z)\prod_i(z-z_i)^{e_i}\,dz$ is holomorphic on $X\setminus\Sigma$. Then the $R\in\mathcal R$ for which $\psi_R$ is exact on $X\setminus\Sigma$ form a subspace of dimension at most $\max(0,M-1)$. \end{lemma} \begin{proof} As $x'$ is generic, no $e_i$ is an integer. Let $R\in\mathcal R$ with $\psi_R=d\Phi$, $\Phi$ holomorphic on $X\setminus\Sigma$. Near a point of $\Sigma$, $\psi_R$ is meromorphic with zero residue, so $\Phi$ is meromorphic on $X$. Since $T^*\psi_R=\zeta^{-x'}\psi_R$, the function $\Phi'=\frac1k\sum_{m=0}^{k-1}\zeta^{mx'}(T^m)^*\Phi$ also has $d\Phi'=\psi_R$, and $T^*\Phi'=\zeta^{-x'}\Phi'$; so $\Phi'=S(z)\prod_i(z-z_i)^{e_i+1}$ with $S$ rational. At a point of $\C$ other than $z_1,\dots,z_4$, $\Phi'$ is holomorphic, and so is $S$. If $S$ had a pole of order $m\ge1$ at $z_i$, then near the points over $z_i$, $\Phi'$ would be a non-zero multiple of $(z-z_i)^{e_i+1-m}$ times a unit, and $d\Phi'$ would have the leading term $(e_i+1-m)(z-z_i)^{e_i-m}$ times a non-zero constant, which is non-zero as $e_i\notin\Z$; but $\psi_R$ is $(z-z_i)^{e_i}$ times a holomorphic function of $z$ near $z_i$, of order at least $e_i>e_i-m$ in $z-z_i$. So $S$ is a polynomial. The cover is unramified over $\infty$ and $\psi_R$ is holomorphic there, so $\Phi'$ is holomorphic at the points over $\infty$, where it behaves like $z^{\deg S+\sum_i(e_i+1)}=z^{\deg S-M+2}$; so $\deg S\le M-2$. Hence $\psi_R$ lies in the image of the linear map $S\mapsto d\bigl(S(z)\prod_i(z-z_i)^{e_i+1}\bigr)$ on the polynomials of degree at most $M-2$, a space of dimension $\max(0,M-1)$. \end{proof} \subsection{The differential rule}\label{ssec:L} \begin{theorem}\label{thm:L} Let $u$ be a unit modulo $k$, $x\in uA$ with $h(x)\ge1$, $x'\in A\cap F$, and $b\equiv1-x-x'$ with $b\in\FF$ and $h(b)\ge1$. Then $b\in uA$. \end{theorem} \begin{proof} Suppose that $b\notin uA$. Let $\alpha\in\Hol x$ and $\beta\in\Hol b$, and take the family $\alpha_\varpi$ of \cref{lem:vanish}. By \cref{lem:vanish} and \cref{lem:derivative} with $\vartheta=\beta$, \begin{equation}\label{eq:L-vanish} 0=\bigl\langle\partial_v[\alpha_\varpi]_{\mathrm{rel}},[\beta]\bigr\rangle=\bigl\langle v,[\alpha\beta/\omega]\bigr\rangle\qquad\text{for every }v\in V . \end{equation} By \eqref{eq:holforms}, $\alpha=P_\alpha(z)\prod_i(z-z_i)^{-\{-xq_i/k\}}dz$ and $\beta=P_\beta(z)\prod_i(z-z_i)^{-\{-bq_i/k\}}dz$ with polynomials of degrees at most $h(x)-1$ and $h(b)-1$, and $\omega=\prod_i(z-z_i)^{q_i/k-1}dz$. So \[ \alpha\beta/\omega=P_\alpha P_\beta\prod_i(z-z_i)^{e_i}\,dz,\qquad e_i=1-\frac{q_i}k-\Bigl\{\frac{-xq_i}k\Bigr\}-\Bigl\{\frac{-bq_i}k\Bigr\}. \] Here $e_i\equiv(x+b-1)q_i/k\equiv-x'q_i/k\pmod1$, and $\sum_ie_i=4-2-(h(x)+1)-(h(b)+1)=-M-2$ with $M=h(x)+h(b)-2\ge0$. The form $\alpha\beta/\omega$ is holomorphic off the zeros $\Sigma$ of $\omega$. The products $P_\alpha P_\beta$ span the space of all polynomials of degree at most $M$, of dimension $M+1$, so by \cref{lem:nonexact} some $\alpha\beta/\omega$ is not exact on $X\setminus\Sigma$: its class in $H^1(X\setminus\Sigma;\C)_{-x'}$ is not zero. As $x'\in A\cap F$, $Z_{x'}=0$ and $p(V)\supset\Ha{x'}$, so $V_{x'}=\Hr{x'}$ by \eqref{eq:exact}. The pairing between $\Hr{x'}$ and $H^1(X\setminus\Sigma;\C)_{-x'}$ is perfect, so some $v\in V_{x'}$ has $\langle v,[\alpha\beta/\omega]\rangle\ne0$, against \eqref{eq:L-vanish}. Hence $b\in uA$. \end{proof} \subsection{The relative rule}\label{ssec:relative} The rules so far concern $p(V)$. When $k$ is even, the ambient locus has the relative directions $Z_c$, $c$ odd, and the next rule puts them into $V$. It uses Filip's theorem that the relative class of a holomorphic form whose absolute class lies in $p(V)$ lies in $V$: a class in his $H^{1,0}_{\iota_l}$ lifts to relative cohomology through the isomorphism that splits his exact sequence and as the relative class of a holomorphic $1$-form, and he proves that the two lifts agree \cite[Theorem~4.2 and the paragraph after it]{FilipSplitting}. For the identity embedding $\iota_0$, his $H^1_{\iota_0}$ is $p(V)$ and that isomorphism identifies it with $V/(V\cap Z)$; so for a holomorphic form $\alpha'$ with $p[\alpha']\in p(V)$, the class $[\alpha']_{\mathrm{rel}}$ lies in $V+(V\cap Z)=V$. \begin{theorem}\label{thm:relative} Let $c\not\equiv0$ with $Z_c\ne0$, let $x\in A$ with $h(x)\ge1$, and let $x'\equiv1+c-x$. If $x'\in A\cap F$, then $Z_c\subset V$. \end{theorem} \begin{proof} Suppose that $V\cap Z_c\ne Z_c$. Let $I$ be the set of vertices $i$ with $q_i\nmid k$ and $cq_i\equiv0$; by \cref{ssec:characters}, $Z_c$ is spanned by the classes $\delta f_{i}$, $i\in I$, where $f_i\in\C^\Sigma$ is the function of character $c$ on the $g_i$ points over $z_i$ that is $1$ at a chosen point and zero on the other orbits. Choose $r\in\C^\Sigma$ with $T^*$ acting on it by $\zeta^{-c}$, supported on the points over the vertices in $I$, such that the linear form $\delta f\mapsto\sum_{s}f(s)r(s)$ on $Z_c$ vanishes on $V\cap Z_c$ and not on $Z_c$; such $r$ exist, as these linear forms, for $r$ of character $-c$, are all the linear forms on $Z_c$. The sum of the values of $r$ over each orbit is zero, as $c\not\equiv0$; so by the residue theorem and the Riemann--Roch theorem there is a meromorphic $1$-form on $X$ with at most simple poles on $\Sigma$, residues $r$, and no other poles, and averaging it as in the proof of \cref{lem:nonexact} we obtain such a form $\varphi$ with $T^*\varphi=\zeta^{-c}\varphi$. \emph{Step 1: $\varphi$ can be chosen with $\langle w,[\varphi]\rangle=0$ for all $w\in V$.} By $T$-invariance of the pairing only $w\in V_c$ matter. On $V\cap Z_c$ the pairing is $-2\pi i\sum_sf(s)r(s)=0$ by \eqref{eq:pair-res}, so $w\mapsto\langle w,[\varphi]\rangle$ factors through $p\colon V_c\to p(V)_c$. By \cref{lem:conj} with $u=1$, $p(V)_c$ is the sum of its intersections with $\Hol c$ and with $H^{0,1}_c$, the space of classes in $H^{0,1}$ of character $c$, which is the complex conjugate of $\Hol{-c}$. If $\alpha'\in p(V)_c\cap\Hol c$, then $[\alpha']_{\mathrm{rel}}\in V_c$ by Filip's theorem, and $\langle[\alpha']_{\mathrm{rel}},[\varphi]\rangle=0$ by \eqref{eq:hol-third}. So the linear form is induced by a linear form on $p(V)_c\cap H^{0,1}_c$; extend it to $H^{0,1}_c$. The pairing $(\xi,\beta)\mapsto\int_X\xi\wedge\beta$ between $H^{0,1}_c$ and $\Hol{-c}$ is perfect, so there is $\beta\in\Hol{-c}$ with $\int_X\xi\wedge\beta$ equal to that form. Replace $\varphi$ by $\varphi-\beta$: the residues are unchanged, $\langle\delta f,[\beta]\rangle=\int_Xp(\delta f)\wedge\beta=0$, and for $w\in V_c$ with $p(w)=\alpha'+\xi$ we get $\langle w,[\beta]\rangle=\int_X\xi\wedge\beta=\langle w,[\varphi]\rangle$, as $\alpha'\wedge\beta=0$. So the new $\varphi$ pairs to zero with $V$. \emph{Step 2: the vanishing.} Let $\alpha\in\Hol x$, and let $\alpha_\varpi$ be the family of \cref{lem:vanish} with $u=1$. At each $\varpi\in\Mt\cap W$, $p[\alpha_\varpi]$ lies in the fiber of $V_{\mathrm{Id}}$, which is the absolute part of $T_\varpi\Mt=V$, so $[\alpha_\varpi]_{\mathrm{rel}}\in V$ by Filip's theorem, and $\langle[\alpha_\varpi]_{\mathrm{rel}},[\varphi]\rangle=0$ by Step 1. Differentiating along $v\in V$ and applying \cref{lem:derivative} with $\vartheta=\varphi$, which has at most simple poles, \begin{equation}\label{eq:rel-vanish} 0=\bigl\langle\partial_v[\alpha_\varpi]_{\mathrm{rel}},[\varphi]\bigr\rangle=\bigl\langle v,[\alpha\varphi/\omega]\bigr\rangle\qquad\text{for every }v\in V . \end{equation} \emph{Step 3: the shape of $\varphi$.} At a point over $z_i$, which is fixed by $T^{g_i}$, the residue of $\varphi$ equals that of $(T^{g_i})^*\varphi=\zeta^{-cg_i}\varphi$; so it vanishes unless $\zeta^{cg_i}=1$, that is, unless $cq_i\equiv0$. Hence $\varphi$ is holomorphic off the points over the vertices in $I$, where it has at most simple poles. Write $\varphi=P_\varphi(z)\prod_i(z-z_i)^{-\{cq_i/k\}-[i\in I]}dz$, with $[i\in I]$ equal to $1$ for $i\in I$ and $0$ otherwise, and $P_\varphi$ rational. At a point over $z_i$, with local coordinate $w$, $w^{k/g_i}=z-z_i$, the form $(z-z_i)^{t}dz$ has order $(k/g_i)(t+1)-1$, where $(k/g_i)t$ is an integer; so a pole of $P_\varphi$ at $z_i$ would give $\varphi$ a pole at $i\notin I$ or a pole of order at least $2$ at $i\in I$. As $\varphi$ is holomorphic over the other points of $\C$, $P_\varphi$ is a polynomial, and holomorphy over $\infty$ gives $\deg P_\varphi\le d_\varphi$ with \[ d_\varphi=\sum_i\{cq_i/k\}+\lvert I\rvert-2 . \] $P_\varphi\ne0$, as $r\ne0$. The number of $i$ with $cq_i\equiv0$ is $1$ or $2$: it is at least $1$ as $Z_c\ne0$, and three such $i$ would give the fourth, as $\sum_icq_i\equiv0$, and then $c\equiv0$ as $\gcd(k,q_1,\dots,q_4)=1$. If it is $1$, the three other fractions $\{cq_i/k\}$ have an integral sum in $(0,3)$, so $d_\varphi\le2+1-2=1$; if it is $2$, the two others sum to $1$ and $d_\varphi\le1+2-2=1$. So $0\le d_\varphi\le1$. \emph{Step 4: a non-zero product.} With $\alpha=P_\alpha(z)\prod_i(z-z_i)^{-\{-xq_i/k\}}dz$, $\deg P_\alpha\le h(x)-1$, \[ \alpha\varphi/\omega=P_\alpha P_\varphi\prod_i(z-z_i)^{d_i}\,dz,\qquad d_i=1-\frac{q_i}k-\Bigl\{\frac{-xq_i}k\Bigr\}-\Bigl\{\frac{cq_i}k\Bigr\}-[i\in I], \] with $d_i\equiv(x-c-1)q_i/k\equiv-x'q_i/k\pmod 1$ and $\sum_id_i=2-(h(x)+1)-(d_\varphi+2)=-M-2$, $M=h(x)-1+d_\varphi$. The form is holomorphic on $X\setminus\Sigma$, and $\deg P_\alpha P_\varphi\le M$. As $P_\alpha$ ranges over the polynomials of degree at most $h(x)-1$, the products $P_\alpha P_\varphi$ form a space of dimension $h(x)$, and $h(x)>\max(0,M-1)$ since $h(x)\ge1$ and $M-1=h(x)-2+d_\varphi\le h(x)-1$. By \cref{lem:nonexact} some $\alpha\varphi/\omega$ has non-zero class in $H^1(X\setminus\Sigma;\C)_{-x'}$. As in the proof of \cref{thm:L}, $V_{x'}=\Hr{x'}$ pairs perfectly with this space, against \eqref{eq:rel-vanish}. Hence $Z_c\subset V$. \end{proof} \subsection{Symmetric members}\label{ssec:sym} A member of the type with a symmetry covers the unfolding of a triangle, and the rank of the orbit closure of a covering surface is at least that of the base. The proof marks the branch values of the covering on the base and uses \cref{lem:marks}. \begin{lemma}\label{lem:cover-rank} Let $(X',\omega')$ and $(Y,\eta)$ be translation surfaces and $\pi\colon X'\to Y$ a holomorphic map of degree $d\ge1$ with $\pi^*\eta=\omega'$. Let $\oc'$ and $\mathcal N$ be the orbit closures of $(X',\omega')$ and $(Y,\eta)$ in their strata, with the zeros marked and no other point. Then $\rk\oc'\ge\rk\mathcal N$. \end{lemma} \begin{proof} Let $\Sigma_Y$ be the zero set of $\eta$, $B\subset Y$ the union of $\Sigma_Y$ and the branch values of $\pi$, and $P=B\setminus\Sigma_Y$, a finite set of regular points. The zeros $\Sigma'$ of $\omega'$ lie in $\pi^{-1}(B)$. Let $\mathcal N^P$ be the orbit closure of $(Y,\eta;P)$ in the stratum with the points of $P$ marked as well. Every tangent space $L$ of $\mathcal N^P$, at every point, has $\dim p(L)=2\rk\mathcal N$: if $P=\emptyset$, then $\mathcal N^P=\mathcal N$ and there is nothing to prove, and if $P\ne\emptyset$ this is \cref{lem:marks}\ref{it:marks-onto}. Fix a point $s_1$ of $\mathcal N^P$ and a tangent space $L$ of $\mathcal N^P$ at $s_1$, and a simply connected neighborhood $W_1$ of $s_1$ in period coordinates, so that the surfaces $(Y_s,\eta_s;P_s)$, $s\in W_1$, are identified topologically with $(Y,\eta;P)$, with $B_s=\Sigma_{Y_s}\cup P_s$. A connected cover of $Y_s$ of degree $d$ branched only over $B_s$ is given by a transitive homomorphism $\varrho$ from $\pi_1(Y\setminus B)$ to the symmetric group, up to conjugation; there are finitely many, $\varrho_1,\dots,\varrho_r$, whose pulled-back forms have the zero orders of $\omega'$. Each gives a continuous map $\Lambda_m$ from $W_1$ to the stratum of $(X',\omega')$, $s\mapsto(X'_{s,m},\pi_{s,m}^*\eta_s)$, which in period coordinates is the linear map \[ H^1(Y,B;\C)\xrightarrow{\ \pi_m^*\ }H^1(X',\pi_m^{-1}(B);\C)\longrightarrow H^1(X',\Sigma';\C), \] the second arrow being restriction. For $g\in\GL^+(2,\R)$ the map $\pi$ is also a translation covering $g(X',\omega')\to g(Y,\eta)$, branched over $g(B)$. So if $s=g(Y,\eta;P)$ lies in $W_1$, then $g(X',\omega')=\Lambda_m(s)$ for some $m$. Points of $L\cap W_1$ off the other branches of $\mathcal N^P$ form a dense open subset of $L\cap W_1$, near which $\mathcal N^P$ is $L$; the orbit of $(Y,\eta;P)$ is dense in $\mathcal N^P$, hence in $L\cap W_1$. So $L\cap W_1$ is the union of the closures of the sets $S_m$ of orbit points $s$ with $\Lambda_m(s)$ in the orbit of $(X',\omega')$, and by Baire's theorem one closure, $\overline{S_m}$, contains a non-empty open subset $O$ of $L\cap W_1$. By continuity $\Lambda_m(O)\subset\oc'$. As $\Lambda_m$ is linear, $\Lambda_m(O)$ is an open subset of the linear space $\Lambda_m(L)$; near a point of it $\oc'$ is a finite union of linear subspaces, one of which contains an open subset of $\Lambda_m(L)$, by Baire's theorem, and hence $\Lambda_m(L)$. So a tangent space $T'$ of $\oc'$ contains $\Lambda_m(L)$, and \[ p(T')\supset p(\Lambda_m(L))=\pi_m^*\,p(L), \] since pull-back and restriction commute with passing to absolute cohomology. Pull-back $H^1(Y;\C)\to H^1(X';\C)$ by a map of degree $d$ is injective, as push-forward after it is multiplication by $d$. So $\dim p(T')\ge\dim p(L)=2\rk\mathcal N$, and since $\oc'$ is connected, $\rk\oc'\ge\rk\mathcal N$. \end{proof} Rational triangles $\Delta=\tri{p_1}{p_2}{p_3}{d}$, their reduced expressions, their unfoldings $(Y,\eta)$ and the sets $F(\Delta)$ are as in \cref{ssec:collision}. \begin{proposition}\label{prop:sym} \leavevmode \begin{enumerate} \item\label{it:sym-kite} Let $i\ne j$ with $a_i=a_j$, and let $l,m$ be the other two indices. For $z$ such that a M\"obius involution $J$ exchanges $z_i$ and $z_j$ and fixes $z_l$ and $z_m$, $(X_z,\omega_z)$ is a translation cover of the unfolding of $\Delta=\tri{2a_i}{a_l}{a_m}N$, of degree $2k/k'$, where $k'$ is the denominator of the reduced expression of $\Delta$: the degree is $1$ when $N$ is even and $a_l,a_m$ are odd, and $2$ otherwise. \item\label{it:sym-three} Let $a_i=a_j=a_l$ for three distinct indices, and let $m$ be the fourth. For $z_i,z_j,z_l$ the three cube roots of unity and $z_m=0$, $(X_z,\omega_z)$ is a translation cover of the unfolding of $\Delta=\tri{6a_i}{2a_m}N{(3N)}$, of degree $\gcd(3,a_m)$. \end{enumerate} In both cases $\rk\Mt$ is at least the rank of the orbit closure of the unfolding of $\Delta$. \end{proposition} The two constructions recover the examples of Eskin, McMullen, Mukamel and Wright for $(1,2,2,7)$ and $(1,1,1,7)$, respectively \cite[\S8, Remarks, (5), and \S5, Particular examples, (5)]{EMMW}. For real $z$ the member in \ref{it:sym-kite} is the unfolding of a kite made of two copies of a triangle with the angles of $\Delta$, glued along the side joining the vertices of angles $a_l\pi/N$ and $a_m\pi/N$; when $l$ is one of the three indices of equal entries, $\Delta=\tri{2a_i}{a_i}{a_m}N$. \begin{proof} \ref{it:sym-kite} The metric $\lvert\omega_z\rvert$ on $\PP^1=X_z/\langle T\rangle$ is a flat metric with cone angles $2\pi q_s/k$ at the $z_s$ and no other singularity; such a metric is unique up to a constant factor. $J^*\lvert\omega_z\rvert$ is a flat metric with the same cone points and angles, as $q_i=q_j$, so it is $c\lvert\omega_z\rvert$ with $c>0$, and $c^2=1$ as $J^2=1$. So $J$ is an isometry, and the quotient $S=\PP^1/J$ is a flat sphere with three cone points: the image of $z_i$ and $z_j$, of angle $2\pi q_i/k=2\pi\cdot2a_i/N$, and the images of the fixed points $z_l,z_m$, of angles $\pi q_l/k=2\pi a_l/N$ and $2\pi a_m/N$. It is the double of the triangle with angles $2a_i\pi/N$, $a_l\pi/N$, $a_m\pi/N$. Let $(Y,\eta)$ be the unfolding of $\Delta$, with $Y\to S$ the covering of degree $k'$ defined by the kernel of the holonomy. Off the cone points, the composite $X_z\to\PP^1\to S$ is a covering whose image in the fundamental group lies in the kernel of the holonomy, since the metric pulls back to $\lvert\omega_z\rvert$, the metric of a global $1$-form; so it factors through $Y$, the factorization extends to a holomorphic map $\pi\colon X_z\to Y$, and $\pi^*\eta$ and $\omega_z$ define the same metric, so $\pi^*\eta=\mu\omega_z$ with $\lvert\mu\rvert=1$; replace $\eta$ by $\mu^{-1}\eta$. The degree is $\deg(X_z\to S)/\deg(Y\to S)=2k/k'$. As $\gcd(a_i,a_l,a_m)=1$, the reduced expression of $\Delta$ divides by $\gcd(2a_i,a_l,a_m)\in\{1,2\}$, which is $2$ exactly when $a_l,a_m$ are even. If $N$ is odd, $k=N$ and $a_l,a_m$ have opposite parities, so $k'=N$ and the degree is $2$. If $N$ is even, $k=N/2$ and $a_l\equiv a_m\pmod2$: when they are odd, $k'=N$ and the degree is $1$; when they are even, $k'=N/2$ and the degree is $2$. \ref{it:sym-three} The rotation $R(z)=e^{2\pi i/3}z$ permutes $z_i,z_j,z_l$, fixes $0$ and $\infty$, and preserves $\lvert\omega_z\rvert=\lvert z^{q_m/k-1}(z^3-1)^{q_i/k-1}dz\rvert$, as $q_i=q_j=q_l$. The quotient $\PP^1/R$ has cone angles $2\pi q_i/k=2\pi\cdot6a_i/(3N)$ at the image of the three points, $2\pi q_m/(3k)=2\pi\cdot2a_m/(3N)$ at the image of $0$, and $2\pi/3=2\pi\cdot N/(3N)$ at the image of $\infty$, a regular point of $\lvert\omega_z\rvert$; it is the double of the triangle $\Delta$. As in \ref{it:sym-kite}, $(X_z,\omega_z)$ is a translation cover of the unfolding of $\Delta$, of degree $3k/k''$ with $k''$ the denominator of the reduced expression of $\Delta$. Here $N=3a_i+a_m$ and $\gcd(a_i,a_m)=1$. If $N$ is odd, $\gcd(6a_i,2a_m,N)$ is odd, hence equal to $\gcd(3a_i,a_m)=\gcd(3,a_m)$, so $k''=3N/\gcd(3,a_m)$ and the degree is $\gcd(3,a_m)$. If $N$ is even, $a_i$ and $a_m$ are odd, $\gcd(6a_i,2a_m,N)=2\gcd(3a_i,a_m,N/2)=2\gcd(3,a_m)$, as $3\mid a_m$ implies $3\mid N/2$; so $k''=3N/(2\gcd(3,a_m))$ and the degree is $3(N/2)/k''=\gcd(3,a_m)$. In both cases $(X_z,\omega_z)\in\Mcyc$, so its orbit closure $\oc'$ lies in $\Mt$, and $\rk\Mt\ge\rk\oc'$: at a point of $\oc'$, each tangent space of $\oc'$ lies in a tangent space of $\Mt$, and the rank of $\Mt$ is the same on all of its branches. By \cref{lem:cover-rank}, $\rk\oc'$ is at least the rank of the orbit closure of the unfolding of $\Delta$. \end{proof} \subsection{Closed sets}\label{ssec:closed} The rules of this section and \cref{sec:collision} are formal statements about subsets of $\FF$, and they can be applied by computation, as Mirzakhani and Wright do for triangles \cite[Theorem~7.14 and Appendix~A]{MirzakhaniWright}. \needspace{4\baselineskip} \begin{definition}\label{def:closed} A subset $A'\subset\FF$ is \emph{closed} if $1\in A'$, $A'=-A'$, $uA'=A'$ for every unit $u$ with $A'\cap uA'\ne\emptyset$, and $b\in uA'$ whenever $u$ is a unit, $x\in uA'$ with $h(x)\ge1$, $x'\in A'\cap F$, and $b\equiv1-x-x'$ lies in $\FF$ with $h(b)\ge1$. Let $\Delta$ range over the triangles of \cref{prop:sym}, for the pairs and triples of equal entries of $\theta$, whose reduced expressions are good (\cref{def:good}); $A'$ \emph{meets the symmetric bounds} if $\sum_{x\in A'}\dim\Ha x\ge\lvert F(\Delta)\rvert$ for each such $\Delta$. Let $\mathrm{Deg}(\theta)\subset\FF$ be the set of characters given by \cref{cor:Deg}. The rules \emph{reach} $\theta$ if every closed set that contains $\mathrm{Deg}(\theta)$ and meets the symmetric bounds is $\FF$. \end{definition} \begin{proposition}\label{prop:reach} If the rules reach $\theta$, then $A=\FF$. \end{proposition} \begin{proof} $A$ is closed: $1\in A$ by \cref{prop:R0}, and the other conditions are \cref{prop:R1,thm:L}. It contains $\mathrm{Deg}(\theta)$ by \cref{cor:Deg}. For a triangle $\Delta$ of \cref{prop:sym} with good reduced expression, the orbit closure of its unfolding is its ambient locus, of rank $\lvert F(\Delta)\rvert/2$ \cite[Theorem~1.1 and \S1]{P25}; so $\sum_{x\in A}\dim\Ha x=2\rk\Mt\ge\lvert F(\Delta)\rvert$ by \cref{prop:R0,prop:sym}. \end{proof} We call $\theta$ \emph{supplementary} if two of its angles sum to $\pi$, that is, if $q_i+q_j=k$ for some $i\ne j$, and \emph{open} if it is admissible and reduced, is not supplementary, and is not one of the seven types \eqref{eq:list}. An open type has $g\ge2$ by \cref{lem:genus}. \section{From the characters to the orbit closure}\label{sec:endgames} Once $A=\FF$, the orbit closure $\Mt$ has the rank of the ambient locus, and this section shows when it is the ambient locus. For odd $k$ the rank suffices, by the classification of Mirzakhani and Wright; for even $k$ the relative characters must be accounted for. Throughout, $\theta$ is admissible and reduced with $g\ge2$, $X$ is a generic point of $\Mcyc$, and $V$, $A$, $\dimA$ are as in \cref{sec:setting}. \subsection{Full rank}\label{ssec:high} Mirzakhani and Wright prove that an affine invariant submanifold of full rank, that is, of rank $g$, is a connected component of a stratum or the locus of hyperelliptic translation surfaces in one \cite[Theorem~1.1]{MirzakhaniWright}; their surfaces have no marked points, as here. \begin{proposition}\label{prop:high} Let $k$ be odd, and suppose that $\rk\Mt=g$. Then $\Mt=\amb$. This holds in particular when $A=\FF$. \end{proposition} \begin{proof} By Mirzakhani and Wright's theorem, $\Mt$ is a connected component of a stratum or the locus of hyperelliptic translation surfaces in one. In the second case the generic point $X$ of $\Mcyc\subset\Mt$ has an involution $\tau$ with $\tau^*\omega=-\omega$, and by \cref{lem:aut} $\tau=T^j$ with $\zeta^j=-1$, which is impossible as $k$ is odd. So $\Mt$ is a connected component of the stratum, the one containing $X$, which is $\amb$. If $A=\FF$, then $\rk\Mt=\dimA/2=g$ by \cref{prop:R0,lem:ambient-dims}, since $p(T_X\amb)=H^1(X;\C)$ for odd $k$. \end{proof} \subsection{Even degree: counting dimensions}\label{ssec:dimension} Let $k$ be even. The tangent space of $\amb=\Qt$ at $X$ is $E^-=\bigoplus_{c\text{ odd}}\Hr c$ (\cref{ssec:ambient}). For odd $c$ with $n(c)=2$ we have $\Ha c=0$ and $\Hr c=Z_c$ by \eqref{eq:exact}; for $c\in\FF$ the space $\Hr c$ is an extension of $\Ha c$ by $Z_c$, and $Z_c=0$ if $c\in F$. So $E^-$ is spanned by lifts of the $\Ha x$, $x\in\FF$, and by the $Z_c$ for the odd relative characters $c$. An odd relative character exists exactly when $k/g_i$ is odd for some vertex $i$ with $q_i\nmid k$, by the description of $Z_c$ in \cref{ssec:characters}. \begin{proposition}\label{prop:dimension} Let $k$ be even. Suppose that $A=\FF$ and that $Z_c\subset V$ for every odd relative character $c$. Then $\Mt=\amb$. In particular $\Mt=\amb$ if $A=\FF$ and $k/g_i$ is even for every vertex $i$ with $q_i\nmid k$. \end{proposition} \begin{proof} We have $V\subset E^-$ and $V=\bigoplus_{c\text{ odd}}V_c$ with $V_c=V\cap\Hr c$ (\cref{ssec:ambient,prop:R0}), and $p(V_c)=p(V)\cap\Ha c$, as $p$ is $T$-equivariant. Let $c$ be odd. If $n(c)\ge3$, then $c\in\FF=A$, so $p(V_c)=\Ha c$; and $Z_c\subset V_c$, by hypothesis if $Z_c\ne0$. By \eqref{eq:exact}, $\dim V_c=\dim Z_c+\dim\Ha c=\dim\Hr c$, so $V_c=\Hr c$. If $n(c)=2$, then $\Hr c=Z_c\subset V$. Hence $V=E^-$. It remains to pass from the equality of tangent spaces at $X$ to $\Mt=\Qt$; we argue as in \cite[Lemma~2.2]{P25}. Let $f\colon\Qc\to\Qt$ be the double-cover map and $O$ the set of $y\in\Qc$ such that $f$ maps a neighborhood of $y$ into $\Mt$. It is open, and it contains $(X/\iota,q)$, since near $X$ both $\Mt$ and the image of Lanneau's chart are open subsets of $E^-$ (\cref{ssec:ambient}). It is closed: let $y_n\in O$ tend to $y$. As $\Mt$ is closed, $f(y)\in\Mt$, and near $f(y)$ the set $\Mt$ is a finite union of linear subspaces through $f(y)$ in period coordinates, read at a lift if $f(y)$ is an orbifold point. Take a connected neighborhood $W'$ of $y$ on which $f$ is a linear chart \cite[\S1.1.1]{Lanneau} and whose image lies in the domain of that description. For large $n$, $f(W')\cap\Mt$ contains a non-empty open subset of $f(W')$; by Baire's theorem one of the subspaces contains a non-empty open subset of the affine image $f(W')$, hence all of $f(W')$, and $y\in O$. As $\Qc$ is connected, $O=\Qc$, so $\Qt=f(\Qc)\subset\Mt\subset\Qt$. \end{proof} Together with \cref{prop:reach} this gives the form in which the rules are used. \begin{corollary}\label{cor:endgame} Suppose that the rules reach $\theta$. If $k$ is odd, then $\Mt=\amb$. If $k$ is even and $Z_c\subset V$ for every odd relative character $c$, then $\Mt=\amb$. \end{corollary} \begin{proof} $A=\FF$ by \cref{prop:reach}; apply \cref{prop:high} for odd $k$ and \cref{prop:dimension} for even $k$. \end{proof} At prime degree \cref{thm:Deg,prop:high} combine into a criterion that needs one triangle. \begin{corollary}\label{cor:prime} Let $\theta$ be a type with $k$ an odd prime, no angle equal to $\pi$, and at least three distinct angles. Let $\{l,m\}$ be a short pair, and suppose that the orbit closure of the unfolding of its collision triangle $\Delta_{lm}$ has rank $(k-1)/2$. Then $\Mt$ is the connected component of the stratum that contains $X$. \end{corollary} \begin{proof} Here $N=k$ and $a_i=q_i/2$ if every $q_i$ is even, and $N=2k$ and $a_i=q_i$ otherwise (\cref{ssec:types}). The type $\theta$ is admissible, as no angle is $\pi$, that is, no $q_i$ equals $k$; and it is reduced, as three distinct entries exclude $a_1=a_21000$ (\cref{thm:odd}). A good connected collision triangle gives every unit, and a closed set containing the units is everything (\cref{lem:units}); so the work is on the types without such a triangle. Either all three collision triangles are disconnected, and the differential rule alone gives the units (\cref{prop:disconnected}), or the type lies in one of two families with repeated angles. There a symmetric member gives the full bound or a bound to which the index-two argument applies, except for $(q_i)=(1,1,1,2k-3)$ with $3\mid k$, treated directly in \cref{lem:ones}. \Cref{ssec:closed-units,ssec:digit} hold for both parities and are used again in \cref{sec:even}. Throughout, $\theta$ is an open type, $\Un=(\Z/k)^\times$, and closed sets are those of \cref{def:closed}. For a divisor $n$ of $k$ we write $\Un_n=(\Z/n)^\times$. Primes are denoted by $\ell$. For $A'\subset\FF$ let $\dimA(A')=\sum_{x\in A'}\dim\Ha x$, so that $\dimA=\dimA(\FF)$. For a divisor $d$ of $k$ let $O_d=\{x\in\Z/k:\ \gcd(x,k)=d\}$; these are the orbits of $\Un$ on $\Z/k$, and $x\mapsto n(x)$ is constant on each of them, as $xq_i\equiv0$ if and only if $k/g_i$ divides $\gcd(x,k)$. So $\FF$ is a union of orbits $O_d$, and $\dim\Ha{ux}=\dim\Ha x$ for $u\in\Un$. Recall that $h(x)+h(-x)=\dim\Ha x$ for $x\ne0$, so for every $x\in\FF$ at least one of $h(x)$, $h(-x)$ is positive, and that for a unit $x$ \begin{equation}\label{eq:h-unit} h(x)=3-\sum_{i=1}^4\Bigl\{\frac{xq_i}k\Bigr\}, \end{equation} where the sum is an integer because $\sum_iq_i=2k$. \subsection{Closed sets and units}\label{ssec:closed-units} \begin{lemma}\label{lem:stab} Let $A'$ be a closed set and $H=A'\cap\Un$. \begin{enumerate} \item\label{it:stab-group} $H$ is a subgroup of $\Un$ containing $-1$, and $H=\{u\in\Un:\ uA'=A'\}$. Two translates $uA'$, $u'A'$ by units are equal or disjoint, there are $[\Un:H]$ of them, and $\dimA(uA')=\dimA(A')$. \item\label{it:stab-ratio} If $x$ and $b$ are units with $h(x)\ge1$, $h(b)\ge1$ and $1-x-b\in A'\cap F$, then $b/x\in H$. \item\label{it:stab-fix} If $x\in uA'$ for a unit $u$, and $v\in\Un$ satisfies $vx=x$, then $v\in H$. \item\label{it:stab-orbits} If $\Un\subset A'$, then $A'$ is a union of orbits $O_d$. \end{enumerate} \end{lemma} \begin{proof} \ref{it:stab-group} If $uA'\cap u'A'\ne\emptyset$, then $A'\cap u^{-1}u'A'\ne\emptyset$, so $u^{-1}u'A'=A'$. If $uA'=A'$, then $u=u\cdot1\in A'$; if $u\in A'\cap\Un$, then $u\in A'\cap uA'$, so $uA'=A'$. So $H$ is the stabilizer of $A'$, a group, and $-1\in H$ as $A'=-A'$. \ref{it:stab-ratio} This is the argument of Mirzakhani and Wright's Lemma~7.13, where $1-x-b=-1$ \cite{MirzakhaniWright}. As $1\in A'$, $x\in xA'$; the last condition of \cref{def:closed} with $u=x$ and $x'=1-x-b$ gives $b\in xA'$, so $b/x\in A'\cap\Un$. \ref{it:stab-fix} $x\in uA'\cap vuA'$, so $vuA'=uA'$ and $vA'=A'$. \ref{it:stab-orbits} Then $H=\Un$ and $uA'=A'$ for every unit $u$. \end{proof} For an integer $n\ge2$, a \emph{fiber} of $n$ is a non-empty set of the form \[ \{t:\ 030$. Every closed set that contains $\Un$ is $\FF$. \end{lemma} \begin{proof} Let $A'$ be closed with $\Un\subset A'$. By \cref{lem:stab}\ref{it:stab-orbits} it suffices to show that every orbit $O_d\subset\FF$ meets $A'$. We claim that there are $x\in\Un$ and $b\in O_d$ with $h(x)\ge1$, $h(b)\ge1$ and $1-x-b\in\Un$. Then the last condition of \cref{def:closed}, with $u=1$ and $x'=1-x-b\in\Un\subset A'\cap F$, gives $b\in A'$. Note that $-O_d=O_d$, that $d$ is odd if $k$ is even, and that for a prime $\ell$ dividing $k$ but not $d$ the residues modulo $\ell$ of the elements of $O_d$ are all the non-zero ones. Suppose that $3\nmid k$. Choose $b\in O_d$ with $h(b)\ge1$. By the Chinese remainder theorem there is $x$ with $x\not\equiv0,\pm(1-b)\pmod\ell$ for every odd prime $\ell\mid k$, as $\ell\ge5$, and $x$ odd if $k$ is even. Then $x$ and $1-b\pm x$ are units, the latter being odd when $k$ is even. One of $x$, $-x$ has $h\ge1$, and the claim follows. Suppose that $3\mid k$. Let $C$ be the set of units $x$ with $x\equiv2\pmod3$ if $3\mid d$, $x\equiv1\pmod3$ if $3\nmid d$, and $x\not\equiv1\pmod\ell$ for every prime $\ell\ge5$ dividing $d$. Suppose that some $x\in C$ has $h(x)\ge1$. Choose $b\in O_d$ with $b\not\equiv\pm(1-x)\pmod\ell$ for every prime $\ell\ge5$ that divides $k$ and not $d$; there are at least four non-zero residues to choose from. Then $1-x-b$ and $1-x+b$ are units: modulo a prime $\ell\ge5$ dividing $d$ they are $\equiv1-x\not\equiv0$; modulo $3$ they are $\equiv-1$ if $3\mid d$, and $\equiv\mp b\not\equiv0$ if $3\nmid d$; they are odd if $k$ is even; and modulo the other primes they are non-zero by the choice of $b$. Replacing $b$ by $-b$ if $h(b)=0$ proves the claim. Finally, some $x\in C$ has $h(x)\ge1$, by \cref{lem:mean} with $t_3\in\{1,2\}$ as above, $\Lambda$ the set of primes $\ell\ge5$ dividing $d$, and $t_\ell=1$. \end{proof} \begin{corollary}\label{cor:one-good} Let $k>30$. If some collision triangle of $\theta$ is connected and good, then the rules reach $\theta$. \end{corollary} \begin{proof} Let $\Delta_{lm}$ be connected and good. A unit $x$ has $xq_l,xq_m,x(q_l+q_m)\not\equiv0$, as $015$. Then one of the following holds: \begin{enumerate} \item\label{it:shape-disc} the three collision triangles of $\theta$ are disconnected; \item\label{it:shape-good} some collision triangle of $\theta$ is connected and good; \item\label{it:shape-double} $N=2k$ and, up to order, $(q_i)=(r,r,s,3s)$ with $k=r+2s$, $r<2s$, $r$ odd and $\gcd(r,s)=1$; \item\label{it:shape-triple} up to order, $(q_i)=(e,e,e,2k-3e)$ with $\gcd(e,k)=1$ and $e3q_1$, so $q_2+2q_3>2q_2+q_3=2k-3q_1>k$. So this case does not occur. Suppose that exactly three values occur: $(q_i)=(r,r,s,t)$ with $s2s$; $r=2s$ would give $2r=k$. If $r>2s$, the numerators $(r-2s,s,3s)$ are distinct unless $r=3s=t$ or $r=5s$, and $r=5s$ gives $k=7s$ and $s=\gcd(k,q_1,\dots,q_4)=1$, so $k=7$. So $r<2s$, and $\gcd(r,s)=\gcd(k,q_1,\dots,q_4)=1$. If $N$ were odd, all $q_i$ would be even. So $N=2k$, and $r$ is odd as $k$ is. This is \ref{it:shape-double}. Otherwise two values occur, and as $\theta$ is reduced, $(q_i)=(e,e,e,2k-3e)$. A common prime factor of $e$ and $k$ would divide all $q_i$, so $\gcd(e,k)=1$. If $e>k/2$, the pairs of an $e$ and $2k-3e$ are short, with collision triangle of numerators $(2e-k,e,2k-3e)$; these are distinct, as $e\ne k$, $2e\ne k$, and $5e=3k$ only for $k=5$. So $e5$, and $\lvert F(\Delta)\rvert=2k-2=\dimA$. \item\label{it:fam-kite} Let $k>15$ and let $\Delta$ be the triangle of \cref{prop:sym}\ref{it:sym-kite} for two equal entries: $\tri{2r}s{3s}{(2k)}$ in the first family, and $\tri{2e}{e}{2k-3e}{(2k)}$ in the second. Its reduced expression is good, unless $N=2k$ and $(q_i)=(1,1,1,2k-3)$, and \[ \lvert F(\Delta)\rvert\ge\tfrac12\dimA-1 . \] \end{enumerate} \end{lemma} \begin{proof} \ref{it:fam-ambient} Let $x\not\equiv0$. As $r$, $s$ and $e$ are units, $xq_i\equiv0$ can hold only for the last entry, $3s$ or $2k-3e\equiv-3e$, and it holds there if and only if $3x\equiv0$. \ref{it:fam-h} In the first family $r\equiv-2s$, so $h(x)=2\{2\phi\}+\{-\phi\}+\{-3\phi\}-1$. If $3\phi\notin\Z$ this is $1+\lfloor3\phi\rfloor-2\lfloor2\phi\rfloor$, which vanishes exactly for $\frac12\le\phi<\frac23$, and $\phi\ne\frac12$ as $k$ is odd; for $\phi=\frac13$ it is $1$, and for $\phi=\frac23$ it is $0$. In the second family $2k-3e\equiv-3e$, so $h(x)=3\{-\phi\}+\{3\phi\}-1=2-\lfloor3\phi\rfloor$. \ref{it:fam-three} In \cref{prop:sym}\ref{it:sym-three} the triangle is $\tri{6a_i}{2a_m}{N}{(3N)}$, which is $\tri{3e}{2k-3e}k{(3k)}$ for both parities of $N$. Here $\gcd(3e,k)=1$, so it is reduced; its numerators are distinct, as $3e\ne k$; and its denominator $3k$ is odd and larger than $15$. The numerator $2k-3e$ is prime to $3k$, so $F(\Delta)$ is the set of $x$ modulo $3k$ with $k\nmid x$ and $3\nmid x$, which has $3k-k-3+1$ elements. \ref{it:fam-kite} In the first family $N=2k$ and $\gcd(2r,s,3s)=\gcd(2,s)$. If $s$ is odd, the expression is reduced, with distinct numerators; for odd $x$ modulo $2k$, $2rx\equiv0$ only for $x=k$, $sx\not\equiv0$ as $s$ is prime to $2k$, and $3sx\not\equiv0$, as it would need $2k/\gcd(3,k)$, an even number, to divide $x$. So $\lvert F(\Delta)\rvert=k-1$. The triangles excluded in \cref{def:good} with even denominator larger than $20$ contain the numerator $1$ or $2$ and are $\tri12c{}$, $\tri1{c}{c+1}{}$ or $\tri2c{c+2}{}$; here $1$ occurs only for $s=1$ and $2$ only for $r=1$, and $s=1$ forces $r=1$; $\tri2s{3s}{}$ is of the third form only for $s=1$; so $\Delta$ is excluded only for $k=3$. If $s$ is even, the reduced expression is $\tri r{s/2}{3s/2}k$, with odd denominator; $r$ and $s/2$ are prime to $k$ and $\gcd(3s/2,k)=\gcd(3,k)$, so $\lvert F(\Delta)\rvert$ is $k-1$ if $3\nmid k$ and $k-3$ if $3\mid k$. Its numerators are distinct unless $r=s/2$ or $r=3s/2$, which with $\gcd(r,s)=1$ give $k\le7$, and its denominator is odd and larger than $15$, so it is good. In the second family, if $N=2k$, then $e$ and $2k-3e$ are odd and the expression is reduced, with distinct numerators, as $e=2k-3e$ would give $2e=k$, and $2e=2k-3e$ would give $5e=2k$ with $e$ odd. As before, for odd $x$ modulo $2k$ only $2ex\equiv0$ can occur, for $x=k$, so $\lvert F(\Delta)\rvert=k-1$. The numerator $2$ occurs only for $e=1$, and $1$ only for $e=1$ or $2k-3e=1$; in the last case $\Delta=\tri1e{2e}{}$, which for $e>1$ is none of the three forms. So $\Delta$ is good unless $e=1$. If $N=k$, then $e$ is even and the reduced expression is $\tri{e}{e/2}{k-3e/2}k$, with odd denominator larger than $15$; its numerators are distinct unless $e=k-3e/2$ or $e/2=k-3e/2$, that is $5e=2k$ or $2e=k$; the second is impossible as $k$ is odd, and the first, with $\gcd(e,k)=1$, forces $(k,e)=(5,2)$, excluded as $k>15$; so the reduced expression is good, and $\lvert F(\Delta)\rvert$ is $k-1$ or $k-3$ as before. In all cases $\lvert F(\Delta)\rvert\ge k-1$ if $3\nmid k$ and $\lvert F(\Delta)\rvert\ge k-3$ if $3\mid k$, which is at least $\frac12\dimA-1$ by \ref{it:fam-ambient}. \end{proof} \begin{lemma}\label{lem:index-two} Let $k>300$, and let $A'$ be a closed set with $\dimA(A')\ge\frac12\dimA-1$. Then $\Un\subset A'$. \end{lemma} \begin{proof} Let $H=A'\cap\Un$, and suppose that $H\ne\Un$. By \cref{lem:stab}\ref{it:stab-group} the $[\Un:H]$ translates of $A'$ are disjoint subsets of $\FF$ with the same $\dimA(uA')$. Three of them would give $3(\frac12\dimA-1)\le\dimA$, that is $\dimA\le6$, against \cref{lem:families-count}\ref{it:fam-ambient}. So $[\Un:H]=2$, and $H$ is the kernel of a character $\chi\colon\Un\to\{\pm1\}$ with $\chi(-1)=1$. The two translates $A'$ and $uA'$ cover $\FF$ up to a set $E$ with $\dimA(E)\le2$. An orbit $O_d\subset\FF$ that does not meet $A'$ does not meet $uA'$ either, so it lies in $E$. Hence every orbit $O_d\subset\FF$ with $\dimA(O_d)>2$ meets $A'$, and the stabilizer in $\Un$ of each of its points lies in $H$, by \cref{lem:stab}\ref{it:stab-fix}. Let $\ell\ge5$ be a prime dividing $k$. The orbit $O_{k/\ell}$ lies in $F$ and has $\ell-1$ elements, so $\dimA(O_{k/\ell})>2$; the stabilizer of its points is the kernel of $\Un\to\Un_\ell$. So $\chi$ factors through $\Un_\ell$. If two primes $\ell,\ell'\ge5$ divided $k$, the two kernels would generate $\Un$ and $\chi$ would be trivial. If $9\mid k$, the orbit $O_{k/9}$ lies in $F$ and has six elements, so $\chi$ factors through $\Un_9$; the non-trivial character of order two of the cyclic group $\Un_9$ takes the value $-1$ at $-1$, so $\chi$ would be trivial on $\Un_9$, and then on $\Un$. As $k>15$, it follows that $k=\ell^\nu$ or $k=3\ell^\nu$ for a prime $\ell\ge5$, that $\chi$ is induced by the Legendre symbol modulo $\ell$, also denoted by $\chi$ and extended by $\chi(0)=0$, and that $\ell\equiv1\pmod4$. Let $C$ be the set of units $x$ of $\Z/k$, with $x\equiv1\pmod3$ if $3\mid k$; it maps bijectively to $\Un_{\ell^\nu}$. For $x,b\in C$, the residue $1-x-b$ is $\equiv-1\pmod3$ if $3\mid k$, so it is a unit as soon as it is not divisible by $\ell$. By \cref{lem:families-count}\ref{it:fam-h} a unit $x$ has $h(x)=0$ only if $\{wx/k\}$ lies in an interval $I$ of length at most $\frac13$. Suppose that $\nu\ge2$. The elements of $C$ in one class modulo $\ell$ are $x_1+jk/\ell^{\nu-1}$, $j\in\Z/\ell^{\nu-1}$, and their fractions $\{wx/k\}$ are the $\ell^{\nu-1}\ge5$ numbers of one class modulo $1/\ell^{\nu-1}$; so each non-zero class modulo $\ell$ contains some $x$ with $h(x)\ge1$. We show by induction that $\chi(j)=1$ for every odd integer $j$ with $0300$ and $k\in\{\ell,3\ell\}$, this is a contradiction. \end{proof} \begin{lemma}\label{lem:ones} Let $k$ be odd with $3\mid k$ and $k>300$, and $(q_i)=(1,1,1,2k-3)$. Then every closed set contains $\Un$. \end{lemma} \begin{proof} Let $A'$ be closed and $H=A'\cap\Un$. Here $w=1$: by \cref{lem:families-count}, $h(z)\ge1$ exactly when the representative of $z\not\equiv0$ in $(0,k)$ is less than $2k/3$, and the $z$ with $03$, then $\ell^\nu\in A'$, and it is fixed by the units $\equiv1\pmod{k/\ell^\nu}$, which form the factor $\Un_{\ell^\nu}$ of $\Un$; so this factor lies in $H$, by \cref{lem:stab}\ref{it:stab-fix}. This gives $H=\Un$ unless $k=3^\nu$ or $k=3\ell^\nu$ with $\ell\ge5$ prime. If $k=3^\nu$, then $3^{\nu-2}\in A'$, so $H$ contains the kernel of $\Un\to\Un_9$; and $5\in H$ generates $\Un_9$. If $k=3\ell^\nu$, then $3\in A'$ gives the factor $\Un_3$ of $\Un$ in $H$, and it remains to show that $H$ maps onto $\Un_{\ell^\nu}$. Every element of $\Un_{\ell^\nu}$ is $\pm j$ for an odd integer $j$ with $01000$. \end{theorem} \begin{proof} Here $k>500$. Let $A'$ be a closed set that contains $\mathrm{Deg}(\theta)$ and meets the symmetric bounds. We go through the cases of \cref{lem:shapes}. In case~\ref{it:shape-good}, \cref{cor:one-good} applies. In case~\ref{it:shape-disc}, $\Un\subset A'$ by \cref{prop:disconnected}, and $A'=\FF$ by \cref{lem:units}. In case~\ref{it:shape-triple} with $3\nmid k$, the symmetric bound of \cref{lem:families-count}\ref{it:fam-three} is $\dimA(A')\ge\dimA$, so $A'=\FF$. In case~\ref{it:shape-triple} with $3\mid k$ and $(q_i)=(1,1,1,2k-3)$, where $N=2k$ if $e=1$, \cref{lem:ones,lem:units} give $A'=\FF$. In the remaining cases, case~\ref{it:shape-double} and case~\ref{it:shape-triple} with $3\mid k$ and $(q_i)\ne(1,1,1,2k-3)$, the triangle of \cref{lem:families-count}\ref{it:fam-kite} is good, so $\dimA(A')\ge\lvert F(\Delta)\rvert\ge\frac12\dimA-1$, and \cref{lem:index-two,lem:units} give $A'=\FF$. \end{proof} \section{Even degree}\label{sec:even} We show that the rules reach every open type with $k$ even and $N>1000$ (\cref{thm:even}), and that for every open type with $k$ even the relative rule gives the relative directions of the ambient locus once $A=\FF$ (\cref{prop:relative-full}). As for odd $k$, a good connected collision triangle suffices. Without one, the argument depends on the number of short pairs whose two entries have an odd prime factor in common with $k$: with two such pairs the last digits at the two primes give the units, up to a subgroup of index two modulo $12$ that is excluded separately; with one, the type is nearly determined and the same argument applies; with none, the type lies in two families with a symmetric member of full rank, in four families of kites, or in a finite list of one-parameter families, on which the differential rule links the characters in an interval. Throughout this section $\theta$ is an open type with $k$ even, so that $N=2k$ and $a_i=q_i$, and we use the notation of \cref{sec:odd}: $\Un$, $\Un_n$, $O_d$, $\dimA(A')$, the short pairs and their collision triangles, and for a closed set $A'$ the group $H=A'\cap\Un$ of \cref{lem:stab}. A prime $\ell$ is a \emph{shared prime} of a short pair $\{l,m\}$ if it divides $\gcd(k,q_l,q_m)$; a prime is shared by at most one short pair (\cref{ssec:digit}), and a collision triangle is connected exactly when its short pair has no shared prime. For real $y$ let $\langle y\rangle$ be the representative of $y$ modulo $1$ in $(0,1]$, so that $\{-y\}=1-\langle y\rangle$ and, for every $z\in\Z/k$, \begin{equation}\label{eq:h-bracket} h(z)=3-\sum_{i=1}^4\Bigl\langle\frac{zq_i}k\Bigr\rangle , \end{equation} where the sum is an integer. An odd $z$ lies in $\FF$ if and only if at most one of the four terms is $1$, and in $F$ if and only if none is. \subsection{From ratios to units}\label{ssec:ratios} \begin{lemma}\label{lem:ratios} Let $M$ be a divisor of $k$ with $k/M$ odd, $A'$ a closed set and $H=A'\cap\Un$. Suppose that $H$ contains the kernel of $\Un_k\to\Un_M$, and that the image of $H$ in $\Un_M$ contains $b_0/x_0$ for all $x_0,b_0\in\Un_M$ with $x_0+b_0\equiv2\pmod M$. Then $H$ contains every unit $u$ with $u\equiv\pm1\pmod{\gcd(k,12)}$. In particular $H=\Un$ if $12\nmid k$. \end{lemma} \begin{proof} Write $\Un_M$ as the product of the groups $\Un_{\ell^\nu}$ over the prime powers $\ell^\nu$ exactly dividing $M$; here $2\mid M$. Let $S_\ell\subset\Un_{\ell^\nu}$ be the set of $v$ with $v\not\equiv-1\pmod\ell$ if $\ell$ is odd, and with $v\equiv1\pmod4$ if $\ell=2$ and $4\mid M$; $S_2=\{1\}$ if $4\nmid M$. Let $v=(v_\ell)$ with $v_\ell\in S_\ell$ for every $\ell$. There is $x_0\in\Un_M$ with $x_0(1+v)\equiv2$: at an odd prime power, $1+v_\ell$ is a unit and $x_0=2/(1+v_\ell)$; at $2^\nu$ with $\nu=1$ take $x_0=1\bmod2$, and with $\nu\ge2$ write $1+v_2=2w$ with $w$ odd and choose $x_0$ with $x_0w\equiv1\pmod{2^{\nu-1}}$. With $b_0=vx_0$ we get $x_0+b_0\equiv2$, so $v=b_0/x_0$ lies in the image $\overline H$ of $H$. Each $S_\ell$ contains $1$, so $\overline H$ contains each $S_\ell$, as a subset of the factor $\Un_{\ell^\nu}$. For $\ell\ge5$, $S_\ell$ has $(\ell-2)\ell^{\nu-1}$ elements, more than half of the group, and generates it. For $\ell=3$, $S_3$ is the subgroup of the $v\equiv1\pmod3$, and $S_2$ is the subgroup of the $v\equiv1\pmod4$ if $4\mid M$, and $\Un_2$ otherwise. So $\overline H$ contains every $v\in\Un_M$ with $v\equiv1\pmod3$ if $3\mid M$ and $v\equiv1\pmod4$ if $4\mid M$, and it contains $-1$; hence it contains every $v\equiv\pm1\pmod{\gcd(M,12)}$. As $H$ contains the kernel of $\Un_k\to\Un_M$, and $\gcd(M,12)$ divides $\gcd(k,12)$, the lemma follows; for $\gcd(k,12)\in\{2,4,6\}$ every unit is $\equiv\pm1$. \end{proof} The congruence modulo $12$ in \cref{lem:ratios} is where ratios of units stop. Let $12\mid k$, and let $\chi(u)$ be the product of the signs of a unit $u$ modulo $3$ and modulo $4$, so that $\ker\chi$ is the group of the units $\equiv\pm1\pmod{12}$, of index two in $\Un$. If $x$, $x'$ and $1-x-x'$ are units, exactly one of them is $\equiv-1\pmod3$ and an odd number are $\equiv-1\pmod4$, so $\chi(x)\chi(x')\chi(1-x-x')=1$. Hence the ratios $b/x$ that \cref{lem:stab}\ref{it:stab-ratio} gives with a unit $1-x-b\in\ker\chi$ lie in $\ker\chi$, and if every element of $\FF$ is a unit, $\ker\chi$ is closed, as it is for the three supplementary types of \cref{ssec:supp-exceptions}. So \cref{prop:twelve} uses the characters of $O_3$, which are not units. For triangles the same character appears in \cite[Proposition~2.8]{P25}. \subsection{The units congruent to \texorpdfstring{$\pm1$}{+-1} modulo 12}\label{ssec:twelve} For an integer $n\ge2$, a \emph{fiber of $n$ modulo $12$} is a non-empty set of the form \[ \{t:\ 00$ there are finitely many $n$ with $\beta(n)\ge\tau$, and they are found by evaluating $\beta$ on the $n$ for which the right-hand side is at least $\tau$. The largest value of $\beta$ is $\beta(12)=\frac56$. In \ref{it:b12-four}, the third largest of the four values is therefore at least $\frac16$, and in \ref{it:b12-three} the second largest of the three is at least $\frac1{12}$. Evaluating $\beta$ and $\beta^0$ on the finitely many $n$ with bound at least $\frac16$, respectively $\frac1{12}$, and listing the least common multiples that are divisible by $12$ of the triples, respectively pairs, that satisfy the inequality for the sum, we find the multiples of $12$ up to $60$ and $84,120,132,168,180,420$ in the first case, the multiples of $12$ up to $60$ and $84,132$ in the second, and the multiples of $12$ up to $132$ and $168,180,204,264$ in \ref{it:b12-three}. These lists include every value that occurs. \end{proof} \needspace{4\baselineskip} \begin{lemma}\label{lem:fiber12} Let $12\mid k$ and $k>420$. Let $t_0$ be a unit modulo $12$, $\Lambda$ a set of primes $\ell\ge5$ dividing $k$, and $t_\ell\not\equiv0\pmod\ell$ for $\ell\in\Lambda$. Then the set of units $x$ with $x\equiv t_0\pmod{12}$ and $x\not\equiv t_\ell\pmod\ell$ for every $\ell\in\Lambda$ contains some $x$ with $h(x)\ge1$. \end{lemma} \begin{proof} As in the proof of \cref{lem:mean}: if $h$ vanishes on this set, the means of the four functions $2\{xq_i/k\}-1$ over it sum to $2$, the map $x\mapsto x(q_i/g_i)\bmod n_i$, with $n_i=k/g_i$, sends it onto a fiber of $n_i$ modulo $12$, every point of which has the same number of preimages, and the least common multiple of any three of the $n_i$ is $k$. So $\sum_i\beta(n_i)\ge2$, against \cref{lem:bias12}\ref{it:b12-four}. \end{proof} \begin{proposition}\label{prop:twelve} Let $12\mid k$ and $k>500$. Let $A'$ be a closed set that contains $\mathrm{Deg}(\theta)$, meets the symmetric bounds, and contains every unit $u\equiv\pm1\pmod{12}$. Then $A'=\FF$. \end{proposition} \begin{proof} If $H=\Un$, this is \cref{lem:units}. Suppose that $H\ne\Un$; then $H$ is the group of the units $\equiv\pm1\pmod{12}$, of index two. The elements of the orbit $O_3$ are the $b=3c$ with $c$ a unit modulo $k/3$; they are odd, as $k/3$ is even, and $3cq_i\equiv0\pmod k$ if and only if $k/3$ divides $q_i$. \emph{Case 1: at most one $q_i$ is divisible by $k/3$.} Then $O_3\subset\FF$. For $b\in O_3$ with $h(b)\ge1$, let $C_b$ be the set of units $x$ with $x\equiv2\pmod3$, $x\equiv b\pmod4$, and $x\not\equiv1-b\pmod\ell$ for every prime $\ell\ge5$ dividing $k$ with $b\not\equiv1\pmod\ell$. By \cref{lem:fiber12} there is $x\in C_b$ with $h(x)\ge1$. Then $x'=1-x-b$ is a unit with $x'\equiv-1\pmod3$ and $x'\equiv1-2b\equiv-1\pmod4$, so $x'\in H\subset A'\cap F$, and the last condition of \cref{def:closed} with $u=x$ gives \begin{equation}\label{eq:b-in-x} b\in xA'\qquad\text{for some unit }x\equiv2\ (\mathrm{mod}\ 3),\ x\equiv b\ (\mathrm{mod}\ 4). \end{equation} If $9\nmid k$, choose $b\in O_3$ with $h(b)\ge1$, and let $v$ be the unit with $v\equiv2\pmod3$ and $v\equiv1\pmod{k/3}$. Then $vb=b$, so $v\in H$ by \eqref{eq:b-in-x} and \cref{lem:stab}\ref{it:stab-fix}. But $v\equiv5\pmod{12}$, as $4\mid k/3$; a contradiction. If $9\mid k$, then $12$ divides $k/3$. We claim that there are units $c_1,c_2$ modulo $k/3$ with $c_1\equiv c_2\pmod4$, $c_1\not\equiv c_2\pmod3$ and $h(3c_1),h(3c_2)\ge1$. Given these, let $b_1=3c_1$, $b_2=3c_2$, and take $x_1,x_2$ as in \eqref{eq:b-in-x}. Then $x_1\equiv x_2\pmod{12}$, so $x_1A'=x_2A'$. Let $v$ be a unit modulo $k$ with $v\equiv c_2/c_1\pmod{k/3}$. Then $vb_1=b_2$, so $b_2\in x_1A'\cap vx_1A'$ and $v\in H$. But $v\equiv1\pmod4$ and $v\equiv2\pmod3$, so $v\equiv5\pmod{12}$; a contradiction. To prove the claim, let $r_i$ be the residue of $q_i$ modulo $k/3$. The $r_i$ have sum zero and no prime factor in common with $k/3$, at most one of them is zero, and by \eqref{eq:h-bracket} \[ h(3c)=3-\sum_{i=1}^4\Bigl\langle\frac{cr_i}{k/3}\Bigr\rangle . \] Suppose that $h(3c)=0$ for every $c$ in a class of units modulo $12$. If no $r_i$ is zero, the argument of \cref{lem:fiber12} at the modulus $k/3$, with plain fibers, gives four denominators with $\sum_i\beta^0\ge2$, any three of them with least common multiple $k/3$. If $r_4=0$, the three other fractions sum to $2$ on the class, so the means of the three functions $2\{cr_i/(k/3)\}-1$ sum to $1$, and the three denominators have $\sum_i\beta^0\ge1$; any two of them have least common multiple $k/3$, since a prime dividing $k/3$, $r_1$ and $r_2$ would divide $r_3$ as well. By \cref{lem:bias12}, $k/3\le132$ or $k/3\in\{168,180,204,264\}$. As $k/3>166$, the claim holds, with every class modulo $12$ available, unless $k/3$ is one of these four numbers. For those, a computation over all $(r_1,\dots,r_4)$ modulo $k/3$ with sum zero, no prime factor in common with $k/3$ and at most one zero entry shows that the classes $1$ and $5$ modulo $12$, or the classes $7$ and $11$, both contain a unit $c$ with $\sum_i\langle cr_i/(k/3)\rangle\le2$. \emph{Case 2: at least two of the $q_i$ are divisible by $k/3$.} Then exactly two are, as three would give the fourth, against $\gcd(k,q_1,\dots,q_4)=1$. They are $jk/3$ and $j'k/3$ with $j,j'\in\{1,2,4,5\}$, $j+j'\ne3$ and $j+j'<6$; so $(q_i)$ is, up to order, $(k/3,k/3,R,S)$, $(2k/3,2k/3,R,S)$ or $(k/3,4k/3,R,S)$. A common prime factor of $k/3$ and $R$ would divide $S$, so $R$ and $S$ are prime to $k/3$, and they are odd. Let $(q_i)=(jk/3,jk/3,R,S)$ with $j\in\{1,2\}$. For odd $x$ modulo $k$, $xjk/3\equiv0$ if and only if $3\mid x$, and $xR,xS\not\equiv0$, as they would need $k$ or $k/3$, an even number, to divide $x$. So $\FF=F$ is the set of odd $x$ prime to $3$, and $\dimA=2k/3$. The triangle of \cref{prop:sym}\ref{it:sym-kite} for the two equal entries is $\Delta=\tri{2jk/3}RS{(2k)}$. This expression is reduced. Its numerators are distinct: $R\ne S$ because $\theta$ is reduced, and the first is even. It is good: its only even numerator is larger than $2$, which excludes the first and third families of \cref{def:good}; if one of $R,S$ is $1$, the two other numerators differ by more than $1$; and the denominator is larger than $20$. For odd $x$ modulo $2k$, $x\cdot2jk/3\equiv0$ if and only if $3\mid x$, and $xR,xS\not\equiv0$ as before. So $\lvert F(\Delta)\rvert=2k/3=\dimA$, and $A'=\FF$ since it meets the symmetric bounds. Let $(q_i)=(k/3,4k/3,R,S)$. Then $R+S=k/3$, the pair of $R$ and $S$ is short, and its collision triangle $\tri{2k/3}RSk$ is connected, as a common divisor of $R$ and $S$ divides $k/3$; its numerators are distinct, and it is good: its even numerator is larger than $2$, and if one of $R,S$ is $1$ the two others differ by more than $1$. So $A'=\FF$ by \cref{cor:one-good}. \end{proof} \subsection{Two short pairs with odd shared primes}\label{ssec:two-primes} \begin{proposition}\label{prop:two-primes} Let $k>500$, and suppose that two short pairs have odd shared primes. Then the rules reach $\theta$. \end{proposition} \begin{proof} Let $\ell_1<\ell_2$ be odd shared primes of two short pairs; so $\ell_1\ge3$ and $\ell_2\ge5$. The pairs have one index in common: let them be $\{i_0,i_1\}$ for $\ell_1$ and $\{i_0,i_2\}$ for $\ell_2$, and let $i_3$ be the fourth index. Then $\ell_1$ divides $q_{i_0}$ and $q_{i_1}$ and not $q_{i_2}$, $q_{i_3}$, and $\ell_2$ divides $q_{i_0}$ and $q_{i_2}$ and not $q_{i_1}$, $q_{i_3}$. Let $M=k/(\ell_1\ell_2)$, and let $A'$ be a closed set that contains $\mathrm{Deg}(\theta)$ and meets the symmetric bounds. By \cref{lem:digit}, $H$ contains the kernel $K$ of $\Un_k\to\Un_M$, and $e_{\ell_j}\in A'$ if $\ell_j^2\nmid k$. For $z_0\in\Un_M$, all units $u\equiv z_0\pmod M$ give the same translate $uA'$, which we denote by $A'(z_0)$. We show that the image of $H$ in $\Un_M$ contains $b_0/x_0$ for all $x_0,b_0\in\Un_M$ with $x_0+b_0\equiv2$. By \cref{lem:ratios} and \cref{prop:twelve} this gives $A'=\FF$ if $12\mid k$, and $H=\Un$, hence $A'=\FF$ by \cref{lem:units}, if $12\nmid k$. \emph{Lifts.} Let $z_0\in\Un_M$. Its lifts to $\Z/k$ are odd, and they are obtained by choosing a digit at $\ell_1$ and a digit at $\ell_2$, as in the proof of \cref{prop:disconnected}. The digit at $\ell_1$ does not change $\langle zq_i/k\rangle$ for $i=i_0,i_1$, and as it varies $\langle zq_{i_2}/k\rangle$ takes the $\ell_1$ values in $(0,1]$ of one class modulo $1/\ell_1$; we number the digits at $\ell_1$ by $0,1,\dots$ in the order of increasing $\langle zq_{i_2}/k\rangle$, so that digit number $j$ has $\langle zq_{i_2}/k\rangle\le(j+1)/\ell_1$. In the same way the digit at $\ell_2$ does not change the terms at $i_0,i_2$, and we number the digits at $\ell_2$ in the order of increasing $\langle zq_{i_1}/k\rangle$. The term at $i_2$ depends only on the digit at $\ell_1$, and the term at $i_1$ only on the digit at $\ell_2$. A \emph{candidate} is a lift with digit numbers $(0,0)$, $(0,1)$, $(0,2)$ or $(1,0)$ that is not divisible by both $\ell_1$ and $\ell_2$; at most one of the four lifts is excluded by this condition, as it fixes both digits. For a candidate $z$, \[ \Bigl\langle\frac{zq_{i_1}}k\Bigr\rangle+\Bigl\langle\frac{zq_{i_2}}k\Bigr\rangle\le\max\Bigl(\frac1{\ell_1}+\frac3{\ell_2},\frac2{\ell_1}+\frac1{\ell_2}\Bigr)\le\frac{14}{15}, \] so the sum in \eqref{eq:h-bracket} is less than $3$, and the two other terms are not both $1$. Hence $z\in\FF$ and $h(z)\ge1$. Moreover $z\in A'(z_0)$: if $z$ is a unit this holds by definition; otherwise $z$ is divisible by exactly one of the two primes, say $\ell_j$, which then divides $k$ only once, and $z=ue_{\ell_j}$ for a unit $u\equiv z_0\pmod M$, with $e_{\ell_j}\in A'$. \emph{The third character.} Let $x$ and $b$ be candidates for $x_0$ and $b_0$, and $x'=1-x-b$, so $x'\equiv-1\pmod M$. We choose them with $x'\in A'\cap F$. Then the last condition of \cref{def:closed} gives $b\in A'(x_0)$, so $A'(x_0)\cap A'(b_0)\ne\emptyset$, the two translates are equal, and $b_0/x_0$ is in the image of $H$. If $x'$ is a unit, then $-x'\in K\subset H$, so $x'\in A'\cap F$. The residue of $x'$ modulo $\ell_j$ is $-1$ if $\ell_j^2\mid k$, and otherwise it is determined by the digits of $x$ and $b$ at $\ell_j$, different digits of $b$ giving different residues. Among the candidates with digit number $0$ at $\ell_1$ there are, for each of $x_0$ and $b_0$, at least two digits at $\ell_2$. So if $x'\not\equiv0\pmod{\ell_1}$ for the digits number $0$ at $\ell_1$, we fix such a candidate $x$ and choose $b$ among two with $x'\not\equiv0\pmod{\ell_2}$; then $x'$ is a unit. Suppose that $x'\equiv0\pmod{\ell_1}$ for the digits number $0$; then $\ell_1^2\nmid k$. If the lift with digit numbers $(1,0)$ is a candidate for $x_0$, take it as $x$; then $x'\not\equiv0\pmod{\ell_1}$, and we choose $b$ with digit number $0$ at $\ell_1$ and $x'\not\equiv0\pmod{\ell_2}$ as before. The same applies with the roles of $x_0$ and $b_0$ exchanged. There remains the case that for both $x_0$ and $b_0$ the lift with digit numbers $(1,0)$ is divisible by $\ell_1$ and $\ell_2$. Then the digit number $1$ at $\ell_1$ is the one divisible by $\ell_1$. We claim that $e_{\ell_1}\in F$. Otherwise $k/\ell_1$ divides some $q_i$; this $q_i$ is divisible by $\ell_2$ and not by $\ell_1$, as $q_i\ne k$, so $i=i_2$; but then $\langle zq_{i_2}/k\rangle=1$ for the lifts $z$ divisible by $\ell_1$, which makes their digit at $\ell_1$ the last one, number $\ell_1-1\ne1$. Now take $x$ and $b$ with digit number $0$ at $\ell_1$, where all three digits at $\ell_2$ give candidates, and with $x'\not\equiv0\pmod{\ell_2}$. Then $x'\equiv0\pmod{\ell_1}$ and $x'=-ve_{\ell_1}$ with $v\in K$, so $x'\in A'\cap F$. \end{proof} \subsection{One short pair with an odd shared prime}\label{ssec:one-prime} \begin{lemma}\label{lem:nongood} Let $k>20$. A connected collision triangle of $\theta$ that is not good has, up to order, the numerators $(w,w,k-2w)$ with $w$ odd and $\gcd(w,k)=1$, or $(1,2,k-3)$, or $(1,\frac k2-1,\frac k2)$, or $(2,\frac k2-2,\frac k2)$ with $\frac k2$ odd. \end{lemma} \begin{proof} The expression with denominator $k$ is reduced, and the sum of the numerators is $k>20$, so the triangle is not one of the nine listed in \cref{def:good}. If two numerators are equal to $w$, then $\gcd(w,k)=1$, and $w$ is odd. Otherwise it is $\tri12c{}$ with $c=k-3$, or $\tri1c{c+1}{}$ with $2c+2=k$, or $\tri2c{c+2}{}$ with $c$ odd and $2c+4=k$. \end{proof} We call the last three triangles of \cref{lem:nongood} the \emph{exceptional scalene} triangles. In the last two, the numerators other than $\frac k2$ have no odd prime factor in common with $k$, as $\gcd(\frac k2-d,k)$ divides $2d$. \begin{proposition}\label{prop:one-prime} Let $k>500$, and suppose that exactly one short pair has an odd shared prime. Then the rules reach $\theta$. \end{proposition} \begin{proof} Let $\ell$ be an odd shared prime of that pair. Of the two other short pairs at most one has the shared prime $2$, so some collision triangle $\Delta$ is connected. If it is good, \cref{cor:one-good} applies. Otherwise it is as in \cref{lem:nongood}. The short pair of $\ell$ has an index in common with that of $\Delta$, and the entry at this index is a numerator of $\Delta$ divisible by $\ell$. This is impossible for the numerators $(w,w,k-2w)$, where $\gcd(k,w)=1$ and $\gcd(k,k-2w)=2$. For $(1,2,k-3)$ it forces $\ell=3$ and the entry $k-3$, but then the other entry of the short pair of $\ell$ is at least $3$ and the pair is not short. So the numerators of $\Delta$ are $(d,\frac k2-d,\frac k2)$ with $d\in\{1,2\}$, and the common index, $l$ say, has $q_l=\frac k2$. Let $m$ be the other index of the short pair of $\Delta$, with $q_m\in\{d,\frac k2-d\}$, and $i$ the other index of the short pair of $\ell$; so $\ell\mid q_i$ and $q_i<\frac k2$. The fourth entry is $\frac{3k}2-q_m-q_i$. The prime $\ell$ divides $q_l$ and $q_i$ and not the two other entries. Let $A'$ be a closed set that contains $\mathrm{Deg}(\theta)$ and meets the symmetric bounds, $M=k/\ell$, and $K$ the kernel of $\Un_k\to\Un_M$; by \cref{lem:digit}, $K\subset H$, and $e_\ell\in A'$ if $\ell^2\nmid k$. As in the proof of \cref{prop:two-primes} it suffices to show that the image of $H$ in $\Un_M$ contains $b_0/x_0$ for all $x_0,b_0\in\Un_M$ with $x_0+b_0\equiv2$, and for this to find lifts $x$, $b$ of $x_0$, $b_0$ in $\FF$ with $h(x),h(b)\ge1$ and $x'=1-x-b\in A'\cap F$; a lift divisible by $\ell$, which occurs only if $\ell^2\nmid k$, is $ue_\ell$ for a unit $u$ lifting the same class. A lift $z$ of $z_0\in\Un_M$ is odd, so $\langle zq_l/k\rangle=\frac12$. As the digit at $\ell$ varies, $\langle zq_m/k\rangle$ takes the $\ell$ values in $(0,1]$ of one class modulo $1/\ell$, and at least $(\ell-1)/2$ of them are less than $\frac12$. For such a digit the sum in \eqref{eq:h-bracket} is less than $3$ and the two other terms are not both $1$, so $z\in\FF$ and $h(z)\ge1$. If $\ell^2\mid k$, then $x'$ is a unit and $-x'\in K$. If $\ell\ge5$, there are two such digits for $b$, and one of them gives $x'\not\equiv0\pmod\ell$, so again $-x'\in K$. If $\ell=3$, $9\nmid k$ and $x'\equiv0\pmod3$, then $x'=-ve_3$ with $v\in K$, which lies in $A'\cap F$ provided that $e_3\in F$. It remains to treat $\ell=3$, $9\nmid k$, $e_3\notin F$. Then $k/3$ divides some entry. It does not divide $\frac k2$; it does not divide $q_i$, as $q_i<\frac k2$ is divisible by $3$ and $k/3$ is not; and it does not divide $d$ or $\frac k2-d$, as $k>12$. So it divides the fourth entry $\frac{3k}2-q_m-q_i$, which is not $k$. If $q_m=d$, this entry lies between $k-d$ and $\frac{3k}2$, so it is $\frac{4k}3$, and $q_i=\frac k6-d$; the pair $\{m,i\}$ is short, with collision triangle $\tri{\frac{5k}6}{d}{\frac k6-d}k$. If $q_m=\frac k2-d$, the entry lies between $\frac k2+d$ and $k+d$, so it is $\frac{2k}3$, and $q_i=\frac k3+d$; the pair $\{m,i\}$ is short, with collision triangle $\tri{\frac k6}{\frac k2-d}{\frac k3+d}k$. In both cases a common divisor of the numerators divides $\frac k6$ and $d$, and $\frac k6$ is odd if $d=2$; so the triangle is connected. Its numerators are distinct, and it is good: in the first case the numerators other than $d$ differ by more than $2$ and are larger than $2$, and in the second all numerators are larger than $2$. So \cref{cor:one-good} applies. \end{proof} \needspace{8\baselineskip} \subsection{No short pair with an odd shared prime}\label{ssec:shapes-even} \begin{table}[t] \centering \small \renewcommand{\arraystretch}{1.25} \begin{tabular}{@{}ll@{\qquad}ll@{}} \toprule $(q_i)$ & interval & $(q_i)$ & interval \\ \midrule $(1,\ 1,\ 2,\ 2k-4)$ & $(\tfrac{1}{2},\ \tfrac{3}{4})$ & $(2,\ 2,\ k-3,\ k-1)$ & $(\tfrac{2}{3},\ 1)$ \\ $(1,\ 1,\ \tfrac{k-2}{2},\ \tfrac{3k-2}{2})$ & kite & $(2,\ 4,\ \tfrac{k-4}{2},\ \tfrac{3k-8}{2})$ & $(\tfrac{3}{4},\ \tfrac{7}{8})$ \\ $(1,\ 1,\ \tfrac k2,\ \tfrac{3k-4}{2})$ & $(\tfrac{1}{4},\ \tfrac{3}{4})$ & $(2,\ 4,\ k-3,\ k-3)$ & $(\tfrac{3}{4},\ 1)$ \\ $(1,\ 1,\ k-3,\ k+1)$ & $(\tfrac{1}{3},\ \tfrac{2}{3})$ & $(2,\ 5,\ k-4,\ k-3)$ & $(\tfrac{4}{5},\ 1)$ \\ $(1,\ 2,\ 2,\ 2k-5)$ & $(\tfrac{3}{5},\ \tfrac{4}{5})$ & $(2,\ \tfrac k4,\ \tfrac k2,\ \tfrac{5k-8}{4})$ & $(\tfrac{5}{8},\ \tfrac{7}{8})$ \\ $(1,\ 2,\ \tfrac{k-4}{2},\ \tfrac{3k-2}{2})$ & $(\tfrac{1}{2},\ \tfrac{3}{4})$ & $(2,\ \tfrac{k+4}{4},\ \tfrac{k-4}{2},\ \tfrac{5k-4}{4})$ & good \\ $(1,\ 2,\ \tfrac{k-2}{2},\ \tfrac{3k-4}{2})$ & $(\tfrac{1}{2},\ \tfrac{3}{4})$ & $(2,\ \tfrac{k-4}{2},\ \tfrac{k-4}{2},\ k+2)$ & kite \\ $(1,\ 2,\ \tfrac k2,\ \tfrac{3k-6}{2})$ & $(\tfrac{1}{2},\ \tfrac{5}{6})$ & $(2,\ \tfrac{k-4}{2},\ \tfrac{k-2}{2},\ k+1)$ & $(\tfrac{1}{2},\ \tfrac{3}{4})$ \\ $(1,\ 2,\ k-4,\ k+1)$ & $(\tfrac{1}{2},\ \tfrac{3}{4})$ & $(2,\ \tfrac{k-4}{2},\ \tfrac{k+6}{2},\ k-3)$ & $(\tfrac{5}{6},\ 1)$ \\ $(1,\ 4,\ k-3,\ k-2)$ & $(\tfrac{3}{4},\ 1)$ & $(2,\ \tfrac{k-4}{2},\ \tfrac{k+8}{2},\ k-4)$ & $(\tfrac{7}{8},\ 1)$ \\ $(1,\ 5,\ k-3,\ k-3)$ & $(\tfrac{4}{5},\ 1)$ & $(2,\ \tfrac{k-2}{2},\ \tfrac k2,\ k-1)$ & $(\tfrac{1}{2},\ 1)$ \\ $(1,\ \tfrac k4,\ \tfrac k2,\ \tfrac{5k-4}{4})$ & $(\tfrac{1}{4},\ \tfrac{3}{4})$ & $(2,\ \tfrac{k-2}{2},\ \tfrac{k+4}{2},\ k-3)$ & $(\tfrac{3}{4},\ 1)$ \\ $(1,\ \tfrac{k+2}{4},\ \tfrac{k-2}{2},\ \tfrac{5k-2}{4})$ & good & $(2,\ \tfrac k2,\ \tfrac{k+2}{2},\ k-3)$ & $(\tfrac{2}{3},\ 1)$ \\ $(1,\ \tfrac{k-4}{2},\ \tfrac{k-2}{2},\ k+2)$ & $(\tfrac{1}{2},\ \tfrac{3}{4})$ & $(2,\ \tfrac k2,\ \tfrac{k+4}{2},\ k-4)$ & $(\tfrac{3}{4},\ 1)$ \\ $(1,\ \tfrac{k-4}{2},\ \tfrac k2,\ k+1)$ & $(\tfrac{1}{4},\ \tfrac{3}{4})$ & $(4,\ \tfrac{k-4}{2},\ \tfrac k2,\ k-2)$ & $(\tfrac{3}{4},\ 1)$ \\ $(1,\ \tfrac{k-4}{2},\ \tfrac{k+8}{2},\ k-3)$ & $(\tfrac{3}{8},\ \tfrac{5}{8})$ & $(\tfrac k4,\ \tfrac{k-4}{2},\ \tfrac k2,\ \tfrac{3k+8}{4})$ & $(\tfrac{3}{8},\ \tfrac{5}{8})$ \\ $(1,\ \tfrac{k-2}{2},\ \tfrac{k-2}{2},\ k+1)$ & kite & $(\tfrac k4,\ \tfrac{k-2}{2},\ \tfrac k2,\ \tfrac{3k+4}{4})$ & $(\tfrac{3}{4},\ 1)$ \\ $(1,\ \tfrac{k-2}{2},\ \tfrac{k+4}{2},\ k-2)$ & $(\tfrac{3}{4},\ 1)$ & $(\tfrac{k+2}{4},\ \tfrac{k-2}{2},\ \tfrac k2,\ \tfrac{3k+2}{4})$ & $(\tfrac{1}{2},\ 1)$ \\ $(1,\ \tfrac{k-2}{2},\ \tfrac{k+6}{2},\ k-3)$ & $(\tfrac{5}{6},\ 1)$ & $(\tfrac{k+4}{4},\ \tfrac{k-4}{2},\ \tfrac k2,\ \tfrac{3k+4}{4})$ & $(\tfrac{1}{4},\ \tfrac{3}{4})$ \\ $(1,\ \tfrac k2,\ \tfrac{k+2}{2},\ k-2)$ & $(\tfrac{1}{2},\ 1)$ & $(\tfrac{k-4}{2},\ \tfrac{k-4}{2},\ \tfrac k2,\ \tfrac{k+8}{2})$ & $(\tfrac{3}{8},\ \tfrac{5}{8})$ \\ $(1,\ \tfrac k2,\ \tfrac{k+4}{2},\ k-3)$ & $(\tfrac{1}{3},\ \tfrac{2}{3})$ & $(\tfrac{k-4}{2},\ \tfrac{k-2}{2},\ \tfrac k2,\ \tfrac{k+6}{2})$ & $(\tfrac{1}{2},\ \tfrac{3}{4})$ \\ $(2,\ 2,\ \tfrac{k-4}{2},\ \tfrac{3k-4}{2})$ & kite & $(\tfrac{k-2}{2},\ \tfrac{k-2}{2},\ \tfrac k2,\ \tfrac{k+4}{2})$ & $(\tfrac{3}{4},\ 1)$ \\ $(2,\ 2,\ \tfrac k2,\ \tfrac{3k-8}{2})$ & $(\tfrac{5}{8},\ \tfrac{7}{8})$ & $(1,\ 1,\ 1,\ 2k-3)$ & $(\tfrac{1}{3},\ \tfrac{2}{3})$ \\ \bottomrule \end{tabular} \caption{A list containing the tuples of \cref{lem:shapes-even}\ref{it:ev-table} and the last triple family used in \cref{thm:even}, as functions of $k$, each with its interval $(\varsigma,\varsigma')$ of \cref{lem:table}. The four rows marked ``kite'' are treated in \cref{prop:kites}, and the two marked ``good'' have a good connected collision triangle.}\label{tab:templates} \end{table} \begin{lemma}\label{lem:shapes-even} Let $k>500$. Suppose that no short pair has an odd shared prime and that no collision triangle is connected and good. Then, up to order, one of the following holds: \begin{enumerate} \item\label{it:ev-double} $(q_i)=(r,r,s,3s)$ with $k=r+2s$, $r$ even, $s$ odd and $\gcd(r,s)=1$; \item\label{it:ev-triple} $(q_i)=(e,e,e,2k-3e)$ with $e$ odd, $\gcd(e,k)=1$ and $e<\frac k2$; \item\label{it:ev-table} $(q_i)$ is one of the tuples of \cref{tab:templates} not marked ``good''. \end{enumerate} \end{lemma} \begin{proof} Only one short pair can have the shared prime $2$, so at least two collision triangles are connected, and by \cref{lem:nongood} each of them is isosceles, with numerators $(w,w,k-2w)$, or exceptional scalene. Suppose that two of them are isosceles, and let $c$ be the entry at the common index of their short pairs and $z$, $z'$ the other entries of the two pairs; the triangles have the numerators $(k-c-z,c,z)$ and $(k-c-z',c,z')$. If $c$ is even, it is the numerator $k-2w$ in both, so $z=z'=(k-c)/2$ and the fourth entry is $k$, which is excluded. So $c$ is odd, it is one of the equal numerators in both, and $z,z'\in\{c,k-2c\}$. If $z\ne z'$, the fourth entry is again $k$. If $z=z'=c$, then $(q_i)=(c,c,c,2k-3c)$ with $\gcd(c,k)=1$, and $2c500$, one of its entries or $k-c-z$ is not positive, an entry is equal to $k$, or two entries have sum $k$, since $\theta$ is open; and we omit the tuples in which some entry is not an integer for any even $k$. Every tuple that remains is listed in \cref{tab:templates}. The two rows marked ``good'' are $(d,s,\frac k2-d,5s-3d)$ with $d\in\{1,2\}$ and $s=(k+2d)/4$. There the pair of the entries $d$ and $s$ is short, with collision triangle $\tri{3s-3d}dsk$. For $d=2$, $s$ is odd, as otherwise all $q_i$ and $k$ would be even; so the triangle is connected. Its numerators are distinct, $s$ and $3s-3d$ are larger than $2$ and differ by more than $2$; so it is good, and these rows do not occur. \end{proof} \subsection{Two families with a full symmetric bound}\label{ssec:families-even} \begin{lemma}\label{lem:families-even} Let $k>20$, and let $A'$ be a closed set that meets the symmetric bounds. Then $A'=\FF$ in each of the following cases: \begin{enumerate} \item\label{it:fe-double} $(q_i)=(r,r,s,3s)$ with $k=r+2s$, $r$ even, $s$ odd and $\gcd(r,s)=1$; \item\label{it:fe-three} $(q_i)=(e,e,e,2k-3e)$ with $e$ odd, $\gcd(e,k)=1$, $e<\frac k2$, and $3\nmid k$; \item\label{it:fe-kite} $(q_i)=(e,e,e,2k-3e)$ with $e$ odd, $\gcd(e,k)=1$, $3\le e<\frac k2$, and $3\mid k$. \end{enumerate} \end{lemma} \begin{proof} In each case we give a triangle $\Delta$ of \cref{prop:sym} whose reduced expression is good, with $\lvert F(\Delta)\rvert=\dimA$; then $\dimA(A')\ge\dimA$ and $A'=\FF$. Recall that $N=2k$ and $a_i=q_i$; the denominators of the triangles are larger than $20$. An odd $x$ is not divisible by an even number; we use this repeatedly. \ref{it:fe-double} Here $s$ is prime to $2k$, and $\gcd(k,r)=2$. For odd $x$ modulo $k$, $sx\not\equiv0$, $3sx\not\equiv0$ as $k/\gcd(3,k)$ is even, and $rx\equiv0$ if and only if $\frac k2$ divides $x$. So $\FF=F$ is the set of odd $x$ not divisible by $\frac k2$, and $\dimA=2\lvert F\rvert$. Let $\Delta=\tri{2r}s{3s}{(2k)}$, the triangle of \cref{prop:sym}\ref{it:sym-kite} for the two entries $r$. It is reduced, with distinct numerators, and good: $2r\ge4$ is its only even numerator, and if $s=1$ the two others are $2k-4$ and $3$. For odd $x$ modulo $2k$, in the same way, $sx,3sx\not\equiv0$, and $2rx\equiv0$ if and only if $\frac k2$ divides $x$. So $F(\Delta)$ is the set of odd $x$ modulo $2k$ whose residue modulo $k$ lies in $F$, and $\lvert F(\Delta)\rvert=2\lvert F\rvert$. \ref{it:fe-three} For odd $x$ modulo $k$, $ex\not\equiv0$ and $(2k-3e)x\equiv-3ex\not\equiv0$; so $\FF=F$ is the set of all odd $x$, and $\dimA=k$. Let $\Delta=\tri{3e}{2k-3e}k{(3k)}$, the triangle of \cref{prop:sym}\ref{it:sym-three}. It is reduced, as $\gcd(3e,k)=1$, with distinct numerators, as $3\nmid k$. It is good: its numerators are larger than $2$, since $3e\ge3$ and $2k-3e>k/2>10$. For odd $x$ modulo $3k$: $kx\equiv0$ if and only if $3\mid x$; $3ex\not\equiv0$; and $(2k-3e)x\not\equiv0$, as $2k-3e$ is prime to $3k$. So $F(\Delta)$ is the set of odd $x$ modulo $3k$ prime to $3$, and $\lvert F(\Delta)\rvert=k$. \ref{it:fe-kite} As $k/3$ is even, again $\FF=F$ is the set of all odd $x$ and $\dimA=k$. Let $\Delta=\tri{2e}e{2k-3e}{(2k)}$, the triangle of \cref{prop:sym}\ref{it:sym-kite} for two of the equal entries, the two other entries being $e$ and $2k-3e$. It is reduced, with distinct numerators. It is good, since $2e\ge6$, $e\ge3$, and $2k-3e>k/2>10$. For odd $x$ modulo $2k$, $2ex\not\equiv0$, $ex\not\equiv0$, and $(2k-3e)x\not\equiv0$ as $2k/3$ is even. So $\lvert F(\Delta)\rvert=k$. \end{proof} \subsection{Intervals of characters}\label{ssec:intervals} In a row of \cref{tab:templates} with an interval $(\varsigma,\varsigma')$, the entries are $q_i=\alpha_ik+b_i$ with $4\alpha_i,4b_i\in\Z$, $\sum_i\alpha_i=2$ and $\sum_ib_i=0$; an \emph{instance} of the row is an open type whose $(q_i)$ is given by the row. For an instance let $J$ be the set of odd integers $x$ with $\varsigma k+210\cdot2^{\omega(n)}$ for every $n>660$, and for every odd $n>165$. \end{lemma} \begin{proof} By inclusion and exclusion the number is $\sum_e\pm N_e$, over the $2^{\omega(n)}$ squarefree divisors $e$ of $n$, where $N_e$ is the number of integers in the interval that lie in the class and are divisible by $e$; these form a residue class modulo $en'$, so $\lvert N_e-\lambda/(en')\rvert\le1$. For the second statement let $f(n)=\varphi(n)/2^{\omega(n)}$, which is multiplicative, with $f(2^\nu)=2^\nu/4$, $f(3^\nu)=3^\nu/3$, and $f(\ell^\nu)\ge\max(2,2\ell^\nu/5)$ for $\ell\ge5$. If $f(n)\le10$, then $n$ has at most four prime factors $\ell\ge5$, and $n\le4\cdot3\cdot(5/2)^4f(n)<5000$. Going through the $n<5000$, the largest with $f(n)\le10$ is $660$, and the largest odd one is $165$. \end{proof} \begin{proposition}\label{prop:interval-group} Let $k>500$, and let $\theta$ be an instance of a row of \cref{tab:templates} with an interval, with no connected and good collision triangle. Then every closed set contains $\Un$. \end{proposition} \begin{proof} Let $A'$ be closed. The units of $\Z/k$ are odd. By \cref{lem:table}, $J$ is the set of odd integers in an open interval of length at least $k/8-2$; and if $J$ contains a unit $x_0$, then $J\subset x_0A'$, so that for $x,x''\in J$ and a unit $v$ with $vx\equiv x''\pmod k$ we get $x''\in x_0A'\cap vx_0A'$ and $v\in H$. In particular $x/x_0\in H$ for every unit $x\in J$. For $k\le5280$ a computation over all such instances shows that $J$ contains a unit $x_0$ and that $-1$ and the ratios $x/x_0$ of the units $x\in J$ generate $\Un$. Let $k>5280$. Then $k/8-2>k/10$, and $J$ contains a unit $x_0$, by \cref{lem:count} with $n=k$ and $n'=1$. Write $\Un$ as the product of the groups $\Un_{\ell^\nu}$ over the prime powers exactly dividing $k$; we show that $H$ contains each factor. \emph{Odd primes.} Let $\ell^\nu$ exactly divide $k$, with $\ell$ odd, and $M=k/\ell^\nu$, which is even. If $M\ge18$, the interval has length more than $k/9\ge2\ell^\nu$, so $J$ contains an odd multiple $x$ of $\ell^\nu$. Every element of the factor $\Un_{\ell^\nu}$ fixes $x$, so the factor lies in $H$. Let $M\le16$; then $\ell^\nu>330$. The integers $1+Mt$ in the interval are odd, and $t$ runs through at least $\ell^\nu/8-2$ consecutive integers. Such an integer is a unit modulo $k$ unless $\ell$ divides it, and the ratio of two of them that are units lies in $H$ and in the factor $\Un_{\ell^\nu}$. If $\nu\ge2$, then $\ell\le\sqrt{\ell^\nu}$ and $\ell^\nu/8-2>\ell+3$. So there are $t$ and $t+\ell$ in the range with $1+Mt$ prime to $\ell$; the ratio of $1+M(t+\ell)$ and $1+Mt$ is $\equiv1\pmod \ell$ and $\not\equiv1\pmod{\ell^2}$, so it generates the kernel of $\Un_{\ell^\nu}\to\Un_\ell$. The integers $1+Mt$ prime to $\ell$ in the range represent every non-zero class modulo $\ell$. So $H$ contains the factor. If $\nu=1$, suppose that the ratios generate a proper subgroup of $\Un_\ell$. Then some character $\chi$ of $\Un_\ell$ of prime order is trivial on it, so $\chi(1+Mt)$ is the same for all $t$ in the range with $1+Mt\not\equiv0$. As $1+Mt\equiv M(t+M^{-1})$, $\chi$ is constant on the non-zero members of a set $I$ of $R$ consecutive residues modulo $\ell$, with $\ell/8-2\le R<\ell$; so $\lvert\sum_{y\in I}\chi(y)\rvert\ge R-1$, with $\chi(0)=0$. For $\ell\le16384$ a computation shows that for $\ell>73$ no character of prime order of $\Un_\ell$ is constant on the non-zero members of such an $I$. For $\ell>16384$ we use the P\'olya--Vinogradov inequality, in the explicit form its standard proof gives: \[ \Bigl\lvert\sum_{y\in I}\chi(y)\Bigr\rvert\le\sqrt \ell\,(1+\log \ell). \] Let $\tau(a)=\sum_{y}\chi(y)e^{2\pi iay/\ell}$; then $\tau(0)=0$, $\lvert\tau(a)\rvert=\sqrt \ell$ for $a\not\equiv0$, and $\chi(y)=\ell^{-1}\sum_a\tau(a)e^{-2\pi iay/\ell}$. The sum of $e^{-2\pi iay/\ell}$ over $y\in I$ has absolute value at most $1/\lvert\sin(\pi a/\ell)\rvert\le \ell/(2\min(a,\ell-a))$ for $0\sqrt \ell(1+\log \ell)$ at $\ell=16384$, where the two sides are $2045$ and less than $1371$, and the difference increases with $\ell$, this is a contradiction. \emph{The prime $2$.} Let $k=2^\nu n$ with $n$ odd. If $2^\nu\ge64$, the interval has length at least $k/8-2>4n+2$, as $k\ge64n$ and $k>5280$; so there is $x\in J$ with $x+2n,x+4n\in J$. Let $v,v'$ be the units with $v\equiv v'\equiv1\pmod n$, $v\equiv(x+2n)/x$ and $v'\equiv(x+4n)/x\pmod{2^\nu}$. Then $vx\equiv x+2n$ and $v'x\equiv x+4n\pmod k$, so $v,v'\in H$ by the first paragraph. In $\Un_{2^\nu}$, $v'\equiv5\pmod8$ generates the subgroup of the elements $\equiv1\pmod4$, and $v\equiv3\pmod4$; so $H$ contains the factor $\Un_{2^\nu}$. If $2^\nu\le32$, then $n>165$, and for every odd class modulo $2^\nu$ the interval contains an integer of this class prime to $n$, by \cref{lem:count} with $n'=2^\nu$, as $\varphi(n)/10>2^{\omega(n)}$. These integers are units in $J$, so the image of $H$ in $\Un_{2^\nu}$ is everything; as $H$ contains the factors at the odd primes, $H=\Un$. \end{proof} \subsection{Kites}\label{ssec:kites} The four rows of \cref{tab:templates} marked ``kite'' are the tuples $(R,R,S,S+k)$ with $R+S=\frac k2$ and $\min(R,S)\in\{1,2\}$. For an open type of this form, $\gcd(R,S)=1$. \needspace{5\baselineskip} \begin{proposition}\label{prop:kites} Let $k>50$ and $(q_i)=(R,R,S,S+k)$ with $R+S=\frac k2$, $\gcd(R,S)=1$ and $\min(R,S)\in\{1,2\}$. Then every closed set that meets the symmetric bounds is $\FF$. \end{proposition} \begin{proof} Put $L=\frac k2$; the denominators of the triangles below are larger than $20$. Then $R$ and $S$ are prime to $L$, and they are both odd if $L$ is even. For odd $x$ modulo $k$, $Rx\equiv0$ if and only if $R$ is even and $x=L$, and $Sx\equiv(S+k)x\equiv0$ if and only if $S$ is even and $x=L$. So $\FF=F$; it is the set of all odd $x$, and $\dimA=2L$, if $L$ is even, and the set of the odd $x\ne L$, with $\dimA=2L-2$, if $L$ is odd. Let $\Delta=\tri{2R}S{S+k}{(2k)}$, the triangle of \cref{prop:sym}\ref{it:sym-kite} for the two entries $R$, and let $A'$ be a closed set that meets the symmetric bounds. \emph{$S$ odd.} The expression is reduced, with distinct numerators. It is good: the numerator $2$ occurs only for $R=1$, and then the two others, $L-1$ and $3L-1$, are larger than $1$ and differ by $k$; the numerator $1$ occurs only for $S=1$, and then the two others are $2L-2$ and $2L+1$. For odd $x$ modulo $2k$, $Sx,(S+k)x\not\equiv0$, as $S$ and $S+k$ are prime to $2k$, and $2Rx\equiv0$ if and only if $R$ is even and $L$ divides $x$. So $\lvert F(\Delta)\rvert$ is $2L$ if $L$ is even and $2L-2$ if $L$ is odd; this is $\dimA$, and $A'=\FF$. \emph{$S$ even.} Then $L$ and $R$ are odd, and the reduced expression of $\Delta$ is $\tri R{S/2}{S/2+L}k$. Its numerators are distinct, as $R=S/2$ would give $L=3$. It is good: the numerators $1$ and $2$ can only be $R$ and $S/2$, and then $L\le5$; if $R=1$ the two others differ by $L$; if $S/2=1$ the two others are $L-2$ and $L+1$; and if $S/2=2$ they are $L-4$ and $L+2$. For odd $x$ modulo $k$, $Rx\not\equiv0$; exactly one of $S/2$, $S/2+L$ is even, with greatest common divisor $2$ with $k$, and the other is prime to $k$. So $F(\Delta)$ is the set of odd $x\ne L$, and $\lvert F(\Delta)\rvert=L-1=\frac12\dimA$. As $\dim\Ha x=2$ for every $x\in F$, we get $\lvert A'\rvert\ge\frac12\lvert F\rvert$. Suppose that $A'\ne\FF$. Then $H\ne\Un$ by \cref{lem:units}, and by \cref{lem:stab}\ref{it:stab-group} there are exactly two translates of $A'$; they partition $F$, $\lvert A'\rvert=(L-1)/2$, and $H$ has index two. Reduction modulo $L$ identifies the odd residues modulo $k$ with $\Z/L$, $F$ with the non-zero classes, and $\Un$ with $\Un_L$; we use this identification. For a prime $\ell$ dividing $L$, the classes of additive order $\ell$ form an orbit of $\Un$ in $F$, which meets $A'$ since it meets one of the two translates; by \cref{lem:stab}\ref{it:stab-fix}, $H$ contains the kernel of $\Un_L\to\Un_\ell$. So the character of $\Un_L$ with kernel $H$ factors through $\Un_\ell$ for every prime $\ell$ dividing $L$. Hence $L=\ell^\nu$ is a prime power, $H$ is the set of the units that are squares modulo $\ell$, and $\ell\equiv1\pmod4$ as $-1\in H$. Let $n_0=(L-1)/4$; then $n_0\ge3$. For odd $x$, the four numbers $\{xq_i/k\}$ are $y,y,\{\frac12-y\},\{\frac12-y\}$ with $y=\{x\min(R,S)/k\}$, since $xS\equiv xL-xR$ modulo $k$ and $\{xL/k\}=\frac12$. So for $x\in F$, $h(x)=2$ if $y<\frac12$ and $h(x)=0$ if $y>\frac12$. If $\min(R,S)=1$, the $x\in F$ with $h(x)=2$ are the odd integers $\xi_j=1+2j$, $0\le j\le2n_0-1$. If $\min(R,S)=2$, they are the odd $x$ with $x\equiv\xi_j\pmod L$, where $\xi_j=1+j$, $0\le j\le2n_0-1$. In both cases exactly one of $x$, $-x$ has $h=2$, for every $x\in F$; so the set $E$ of the $j$ with $\xi_j\in A'$ has $n_0$ elements, and $0\in E$. For $j\le j'$ in $E$, the last condition of \cref{def:closed} with $u=1$, $x=\xi_j$ and $x'=-\xi_{j'}$ gives $b=1-\xi_j+\xi_{j'}=\xi_{j'-j}\in A'$. So $E$ is closed under non-negative differences. Let $\delta$ be its least positive element. Subtracting $\delta$ repeatedly shows that $E$ consists of multiples of $\delta$, and that it contains every multiple of $\delta$ up to its largest element; so $E=\{0,\delta,\dots,(n_0-1)\delta\}$. As $(n_0-1)\delta\le2n_0-1$ and $n_0\ge3$, $\delta\in\{1,2\}$. Hence, modulo $L$, \[ A'=\{\pm(1+tj):\ 0\le j2$. The sum of the squares of the elements of a subgroup of $\Un_\ell$ of order larger than $2$ is zero modulo $\ell$, as it is unchanged by multiplication by $v^2\ne1$ for an element $v$ of the subgroup. On the other hand, as $4n_0\equiv-1\pmod \ell$, \begin{align*} \sum_{x\in H}x^2=2\sum_{j=0}^{n_0-1}(1+tj)^2&=2n_0\Bigl(1+t(n_0-1)+t^2\frac{(n_0-1)(2n_0-1)}6\Bigr)\\ &\equiv\frac{2n_0}{16}\bigl(16-20t+5t^2\bigr)\pmod \ell, \end{align*} and $16-20t+5t^2$ is $1$, $-4$, $16$ for $t=1,2,4$. This is not zero modulo $\ell$; a contradiction. \end{proof} \subsection{Conclusion}\label{ssec:even-conclusion} \begin{theorem}\label{thm:even} The rules reach every open type with $k$ even and $N>1000$. \end{theorem} \begin{proof} Here $k>500$. Let $A'$ be a closed set that contains $\mathrm{Deg}(\theta)$ and meets the symmetric bounds. If some collision triangle is connected and good, \cref{cor:one-good} applies; suppose that there is none. If at least two short pairs have odd shared primes, \cref{prop:two-primes} applies, and if exactly one has, \cref{prop:one-prime}. Otherwise $\theta$ is as in \cref{lem:shapes-even}. In case~\ref{it:ev-double}, and in case~\ref{it:ev-triple} with $3\nmid k$ or $e\ge3$, $A'=\FF$ by \cref{lem:families-even}. The remaining tuple of case~\ref{it:ev-triple} is $(1,1,1,2k-3)$, the last row of \cref{tab:templates}, which we treat with case~\ref{it:ev-table}. There, if the row is marked ``kite'', then $A'=\FF$ by \cref{prop:kites}; otherwise $\Un\subset A'$ by \cref{prop:interval-group}, and $A'=\FF$ by \cref{lem:units}. \end{proof} \subsection{Relative characters}\label{ssec:relative-full} \begin{proposition}\label{prop:relative-full} Let $\theta$ be an open type with $k$ even, and suppose that $A=\FF$. Then $Z_c\subset V$ for every odd relative character $c$. \end{proposition} \begin{proof} Let $c$ be an odd relative character. By \cref{thm:relative} it suffices to find $x\in\FF$ with $h(x)\ge1$ and $1+c-x\in F$. We look for a unit $x$ with $h(x)\ge1$ such that $1+c-x$ is a unit; units lie in $F$. Note that $1+c-x$ is odd for odd $x$. If $3\nmid k$, there is a unit $x$ with $x\not\equiv\pm(1+c)\pmod\ell$ for every odd prime $\ell$ dividing $k$, as $\ell\ge5$. Then $1+c-x$ and $1+c+x$ are units, and one of $x$, $-x$ has $h\ge1$. Let $3\mid k$. Choose $t_3\in\{1,2\}$ with $t_3\not\equiv1+c\pmod3$, and let $C$ be the set of units $x$ with $x\equiv t_3\pmod3$ and $x\not\equiv1+c\pmod\ell$ for every prime $\ell\ge5$ dividing $k$ with $1+c\not\equiv0\pmod\ell$. For $x\in C$, $1+c-x$ is a unit. If $k\notin\{6,12,30\}$, some $x\in C$ has $h(x)\ge1$, by \cref{lem:mean}. For $k\in\{6,12,30\}$, an enumeration of the admissible, reduced types with $k\in\{6,12,30\}$ that are not supplementary shows that for every odd relative character $c$ there is $x\in\FF$ with $h(x)\ge1$ and $1+c-x\in F$, except for $\theta=(1,1,2,8)$ and $c=3$; and $(1,1,2,8)$ is not open. \end{proof} Together with \cref{cor:endgame}, \cref{thm:even,prop:relative-full} give $\Mt=\amb$ for every open type with $k$ even that the rules reach. \section{Two angles summing to \texorpdfstring{$\pi$}{pi}}\label{sec:supp} The types excluded in \cref{sec:odd,sec:even} are the supplementary ones, in which $q_i+q_j=k$ for some $i\ne j$. They have two short pairs instead of three, but the rules are simpler on them, because every generic character has $h=1$. In this section $\theta$ is an admissible, reduced, supplementary type with $g\ge2$; the result is \cref{thm:supp}, and for $t=\frac k2$ in the normal form below it is \cite[Theorem~1.10]{Apisa}. \subsection{Normal form and characters}\label{ssec:supp-form} \begin{lemma}\label{lem:supp-form} $N$ is even, $k=N/2$ and $q_i=a_i$, and \[ (q_1,q_2,q_3,q_4)=(s,\,t,\,k-t,\,k-s)\qquad\text{with }020$, and suppose that neither $\Delta_1$ nor $\Delta_2$ is good. Then $k$ is even, and $(s,t)$ is one of \[ (1,2),\qquad(1,\tfrac k2),\qquad(\tfrac k2-1,\tfrac k2),\qquad(2,\tfrac k2)\ \text{ with }\tfrac k2\text{ odd},\qquad(\tfrac k2-2,\tfrac k2)\ \text{ with }\tfrac k2\text{ odd}. \] \end{lemma} \begin{proof} By \cref{lem:nongood}, whose proof applies to $\theta$, each of the two triangles has two equal numerators or is exceptional scalene: $(1,2,k-3)$ with $k$ even, $(1,\frac k2-1,\frac k2)$, or $(2,\frac k2-2,\frac k2)$ with $\frac k2$ odd. The largest numerator of $\Delta_2$ is $k-t$, as $s$ and $t-s$ are less than $t\le k-t$. So for $\Delta_2$ one of the following holds: $t=2s$; or $k$ is even, $t=3$ and $s\in\{1,2\}$; or $t=\frac k2$ and $s\in\{1,\frac k2-1\}$; or $t=\frac k2$ is odd and $s\in\{2,\frac k2-2\}$. The last two give four of the five pairs of the statement. Let $t=2s$. Then $\gcd(s,k)=1$ and $\Delta_1$ has the numerators $s,2s,k-3s$. If two of them are equal, then $k=4s$ or $k=5s$, so $s=1$ and $k\le5$. If $\Delta_1$ is $(1,2,k-3)$ with $k$ even, then $s=1$, as $k-3s\in\{1,2\}$ would give $k\le8$; this is the pair $(1,2)$. If the largest numerator of $\Delta_1$ is $\frac k2$, then $2s=\frac k2$ or $k-3s=\frac k2$, so $s$ divides $k$, $s=1$ and $k\le6$. Let $k$ be even, $t=3$ and $s\in\{1,2\}$. Then $\Delta_1$ has the numerators $s,3,k-s-3$, which are distinct; the largest is larger than $\frac k2$, and $1$ and $2$ are not both among them. So $\Delta_1$ is good. \end{proof} \begin{lemma}\label{lem:supp-families} Let $k$ be even and $(s,t)$ one of the five pairs of \cref{lem:supp-shapes}. Then every closed set is $F$. \end{lemma} \begin{proof} For odd $x$, $x\frac k2\not\equiv0$. In each of the five cases the entries among $s,t$ other than $\frac k2$ are $1$, $2$, $\frac k2-1$, or $\frac k2-2$ with $\frac k2$ odd; their greatest common divisors with $k$ are $1$, $2$, $\gcd(2,\frac k2-1)$ and $1$. For an entry $e$ prime to $k$ no $x\not\equiv0$ has $xe\equiv0$, and for an entry $e$ with $\gcd(k,e)=2$ this holds exactly when $\frac k2$ divides $x$. So $F$ is the set of all odd residues, or the set of all odd residues other than $\frac k2$, with $\frac k2$ odd. Let $A'$ be closed. By \cref{lem:supp-walk} with $u=1$, starting from $1\in A'$, $A'$ contains the odd integers $1,3,5,\dots$ up to $k-1$, or up to $\frac k2-2$ if $\frac k2\notin F$; in the second case $A'=-A'$ gives the others. \end{proof} \subsection{The three exceptions}\label{ssec:supp-exceptions} \begin{proposition}\label{prop:supp-reach} If $\theta$ is not one of $(1,4,8,11)$, $(3,4,8,9)$, $(4,5,7,8)$, then every closed set that contains $\mathrm{Deg}(\theta)$ is $F$; in particular the rules reach $\theta$. \end{proposition} \begin{proof} For $k>20$ this follows from \cref{lem:supp-shapes,lem:supp-families} and the remark before them. For $k\le20$ we compute the least closed set containing $\mathrm{Deg}(\theta)$ for each of the finitely many types; it is $F$ except for the three types of the statement. \end{proof} The three types have $k=12$ and $(s,t)=(1,4)$, $(3,4)$, $(4,5)$, and $F=\{1,5,7,11\}$. Their collision triangles are $\tri147{12}$ and $\tri138{12}$, $\tri345{12}$ and $\tri138{12}$, $\tri345{12}$ and $\tri147{12}$, none of which is good, so $\mathrm{Deg}(\theta)=\emptyset$; no two entries are equal, so there are no symmetric bounds; and $\{1,11\}$ is closed. Indeed, for $x,x'\in\{\pm1\}$ the residue $1-x-x'$ is $\pm1$ or $3\notin F$; for $x\in\{5,7\}$ and $x'\in\{\pm1\}$ it is $5$, $7$ or $9\notin F$; and $\{1,11\}\cap\{5,7\}=\emptyset$. So the rules do not reach these types, and we treat them by certificates in \cref{sec:census}. \subsection{Relative characters and the result}\label{ssec:supp-result} \begin{proposition}\label{prop:supp-relative} Let $k$ be even, and suppose that $A=F$. Then $Z_c\subset V$ for every odd relative character $c$. \end{proposition} \begin{proof} There is a unit $x$ with $x\not\equiv1+c\pmod\ell$ for every odd prime $\ell$ dividing $k$. Then $1+c-x$ is a unit, being odd. So $x\in A$ with $h(x)=1$, and $1+c-x\in A\cap F$, by \cref{lem:supp-form}; \cref{thm:relative} gives $Z_c\subset V$. \end{proof} \begin{theorem}\label{thm:supp} Let $\theta$ be an admissible, reduced, supplementary type with $g\ge2$. Then $\Mt=\amb$: the connected component of the stratum containing $X$ if $N\equiv2\pmod4$, and the locus $\Qt$ if $4\mid N$. \end{theorem} \begin{proof} For the three types $(1,4,8,11)$, $(3,4,8,9)$, $(4,5,7,8)$ this is \cref{prop:cert}. Otherwise the rules reach $\theta$, by \cref{prop:supp-reach}. If $k$ is odd, \cref{cor:endgame} gives $\Mt=\amb$. If $k$ is even, $A=F$ by \cref{prop:reach}, so $Z_c\subset V$ for every odd relative character $c$ by \cref{prop:supp-relative}, and \cref{cor:endgame} applies. By \cref{lem:supp-form}, $k=N/2$, which is odd exactly when $N\equiv2\pmod4$. \end{proof} \section{Types with \texorpdfstring{$N\le1000$}{N at most 1000}}\label{sec:census} For $N\le1000$ we apply the rules by computation. They reach every open type except $32$, all with $N\le32$ (\cref{prop:census}). For these $32$ types, and for the three supplementary types of \cref{prop:supp-reach}, we show $\Mt=\amb$ by exhibiting one quadrilateral of the type whose unfolding has an orbit closure of the dimension of $\amb$; the dimension is bounded from below with Wright's cylinder deformations, by Delecroix and R\"uth's procedure \cite[\S3]{DelecroixRuth} (\cref{prop:cert}). \subsection{The census}\label{ssec:census} \begin{proposition}\label{prop:census} The rules reach every open type with $N\le1000$, except the following $32$ types, which they do not reach: \begin{equation}\label{eq:residue} \begin{gathered} (1,1,2,6);\qquad(1,1,4,10),\ (1,2,3,10),\ (1,2,4,9),\ (2,4,5,5);\\ (1,1,2,16),\ (1,1,4,14),\ (1,1,6,12),\ (1,2,3,14),\ (1,2,4,13),\ (1,2,5,12),\\ (1,2,6,11),\ (1,3,4,12),\ (2,3,3,12),\ (2,3,4,11),\ (2,3,6,9),\ (3,3,6,8);\\ (1,1,1,21),\ (1,1,2,20),\ (1,1,4,18),\ (1,1,6,16),\ (1,1,8,14),\ (1,2,4,17),\\ (1,2,5,16),\ (1,2,8,13),\ (1,3,4,16),\ (1,4,5,14),\ (1,4,6,13),\ (2,4,5,13);\\ (1,1,2,24),\ (1,2,6,19);\qquad(1,2,4,25). \end{gathered} \end{equation} \end{proposition} The types of \eqref{eq:residue} have $N=10$, $16$, $20$, $24$, $28$ and $32$, in this order, so that $k$ is $5$, $8$, $10$, $12$, $14$ and $16$. \begin{proof} This is a finite computation with the definitions of \cref{def:closed,def:good,cor:Deg,prop:sym}. An intersection of closed sets is closed, so there is a least closed set $A_0$ that contains $\mathrm{Deg}(\theta)$; it is obtained from $\mathrm{Deg}(\theta)\cup\{1\}$ by adding the elements that the conditions of \cref{def:closed} require until none is left, as each element added in this way lies in every closed set that contains $\mathrm{Deg}(\theta)$. If $A_0=\FF$, the rules reach $\theta$. For every admissible type with $N\le1000$ that is not supplementary, the computation first tests a sufficient condition for $A_0=\FF$: that $\Un\subset A_0$, because some collision triangle is connected and good (\cref{cor:Deg}) or because the ratios $(2-x)/x$, over the units $x$ such that $2-x$ is a unit and $h(x),h(2-x)\ge1$, generate $\Un$ together with $-1$ (\cref{lem:stab}\ref{it:stab-group} and \ref{it:stab-ratio}, the latter with $b=2-x$); and that every orbit $O_d\subset\FF$ with $d\ne1$ lies in $\mathrm{Deg}(\theta)$ by \cref{cor:Deg}, or contains some $b$ with $h(b)\ge1$ such that $1-x-b$ is a unit for some unit $x$ with $h(x)\ge1$, so that $b\in A_0$ by the last condition of \cref{def:closed} with $u=1$, and $O_d\subset A_0$ by \cref{lem:stab}\ref{it:stab-orbits}. This leaves $1402$ types with $N\le350$ and $42{,}579$ with $351\le N\le1000$. For each of the first, the computation determines $A_0$; six of them are types of \eqref{eq:list}, which are not open. On the $32$ types of \eqref{eq:residue}, $A_0\ne\FF$, and no triangle of \cref{prop:sym} for $\theta$ has a good reduced expression; so $A_0$ meets the symmetric bounds, and the rules do not reach $\theta$. On every other open one with $A_0\ne\FF$, the computation finds that no closed set that contains $A_0$ and is not $\FF$ meets the symmetric bounds. None of the $42{,}579$ types with $351\le N\le1000$ has a connected good collision triangle. For each of them the computation adds to $\{\pm1\}$ the elements that the conditions of \cref{def:closed} require, until the set contains $\Un$; then $A_0=\FF$ by \cref{lem:units}, as $k>175$. This fails on $488$ types, which are the members of the four kite families described next with $351\le N\le1000$, and \cref{prop:kites} applies to them. \end{proof} For $33\le N\le1000$ the open types with $A_0\ne\FF$ are the members of the four families $(1,1,m,3m+2)$, $(1,m,m,2m+3)$, $(2,2,m,3m+4)$ and $(2,m,m,2m+6)$, with $m$ odd in the last two, and the types $(1,4,4,31)$, $(3,4,4,29)$ and $(4,4,13,19)$; the four families are the rows of \cref{tab:templates} marked ``kite''. On the seven types of \eqref{eq:list} the same computation gives $A_0=\{\pm1\}$. For six of them this is not $\FF$. For $(1,1,2,8)$, where $k=6$, it is $\FF$: the rules reach this type, so that $A=\FF$, and what fails is the relative part (\cref{rem:sharp}). \subsection{Cylinders and tangent vectors}\label{ssec:twist} Let $(X',\omega')$ be a translation surface with non-empty zero set $\Sigma'$, and $\oc'$ its orbit closure in its stratum. The orbit of $(X',\omega')$ is dense in $\oc'$, so $(X',\omega')$ does not lie in the self-crossing locus of $\oc'$, a closed invariant set that is a finite union of affine invariant submanifolds of smaller dimension (\cref{ssec:aut}). So there is one linear subspace $V'\subset H^1(X',\Sigma';\C)$ with which $\oc'$ agrees near $(X',\omega')$ in period coordinates, and $\dim\oc'=\dim_\C V'$. It contains the real classes $\operatorname{Re}[\omega']$ and $\operatorname{Im}[\omega']$, which are tangent to the orbit. A \emph{cylinder of direction $\mathbf v$}, for a non-zero vector $\mathbf v\in\R^2$, is a maximal open annulus in $X'$ swept out by closed geodesics of $\lvert\omega'\rvert$ whose holonomy is a positive multiple of $\mathbf v$; its boundary consists of saddle connections between points of $\Sigma'$. For such a cylinder $\mathcal C$ let $\lvert\mathcal C\rvert$ be its circumference and $\operatorname{mod}(\mathcal C)$ its modulus, the height divided by the circumference; and let $I_{\mathcal C}\in H^1(X',\Sigma';\Z)$ be the class that vanishes on the relative cycles that can be realized disjointly from $\mathcal C$ and takes the value $1$ on a path in the closure of $\mathcal C$ that goes from a point of $\Sigma'$ on the boundary component to the right of the core curves, oriented by $\mathbf v$, to a point of $\Sigma'$ on the other boundary component. Equivalently, $I_{\mathcal C}$ takes on a relative cycle its algebraic intersection number with a core curve of $\mathcal C$ oriented by $\mathbf v$, a crossing counting $+1$ when the core curve and the cycle, in this order, form a positive basis there. After the rotation that makes $\mathbf v$ horizontal and positive, these are the bottom and the top of $\mathcal C$, and $I_{\mathcal C}$ is the class that Wright denotes by $I_\alpha$, for the core curve $\alpha$ of $\mathcal C$ \cite[Lemma~2.4]{WrightCyl}. Wright's cylinder deformation theorem says that, for the collection $\mathcal K$ of all horizontal cylinders of $(X',\omega')$ and all $s,t\in\R$, the surface $a_s^{\mathcal K}(u_t^{\mathcal K}(X',\omega'))$ lies in $\oc'$ \cite[Theorem~1.1]{WrightCyl}. Here $u_t^{\mathcal K}$ shears the cylinders of the collection by the matrix $\bigl(\begin{smallmatrix}1&t\\0&1\end{smallmatrix}\bigr)$ and leaves the rest of the surface unchanged, and $a_s^{\mathcal K}$ stretches them. For the cylinders $C_1,\dots,C_r$ of $\mathcal K$, with heights $h_i$ and circumferences $c_i$, Wright writes $u^{\mathcal K}_{t_1,\dots,t_r}$ for the deformation that shears $C_i$ by $t_i$, and proves that the closure of the orbit of $(X',\omega')$ under the $u_t^{\mathcal K}$ is the set of the surfaces $u^{\mathcal K}_{t_1/m_1,\dots,t_r/m_r}(X',\omega')$, where $m_i=h_i/c_i$ and the $t_i$ satisfy every homogeneous linear relation with rational coefficients that the $m_i$ satisfy \cite[Corollary~3.4]{WrightCyl}. \begin{lemma}\label{lem:twist} Let $\mathcal C_1,\dots,\mathcal C_r$ be all the cylinders of $(X',\omega')$ of a direction $\mathbf v$, and let $t_1,\dots,t_r$ be real numbers that satisfy every homogeneous linear relation with rational coefficients that holds among $\operatorname{mod}(\mathcal C_1),\dots,\operatorname{mod}(\mathcal C_r)$. Then \[ \sum_{i=1}^rt_i\,\lvert\mathcal C_i\rvert\,I_{\mathcal C_i}\in V' . \] \end{lemma} \begin{proof} A rotation multiplies the period coordinates by a complex scalar and maps $\oc'$ to itself; so, with the marking of $(X',\omega')$, the rotated surface has the same space $V'$, and we may assume that $\mathbf v$ is horizontal and positive. By Wright's theorem with $s=0$, the surfaces $u_t^{\mathcal K}(X',\omega')$, for the collection $\mathcal K$ of all horizontal cylinders, lie in $\oc'$, which is closed. By Wright's corollary above, applied with $(\sigma t_i)_i$ in place of $(t_i)_i$, $\oc'$ contains the surface obtained from $(X',\omega')$ by shearing $\mathcal C_i$ by $\sigma t_i/\operatorname{mod}(\mathcal C_i)$ for $i=1,\dots,r$, for every real $\sigma$. A shear of $\mathcal C_i$ by $t$ moves the period coordinates by $t$ times the height of $\mathcal C_i$ times $I_{\mathcal C_i}$, for small $t$ \cite[Lemmas~2.3 and~2.4]{WrightCyl}, and shears of distinct cylinders commute. So for small $\sigma$ this surface has the period coordinates $[\omega']+\sigma\sum_it_i\lvert\mathcal C_i\rvert I_{\mathcal C_i}$, as in Wright's proof of \cite[Lemma~7.3]{WrightCyl}. Near $[\omega']$ the set $\oc'$ is $V'$, which is a linear subspace containing $[\omega']$; the claim follows. \end{proof} \subsection{One member of full dimension}\label{ssec:full} By \cref{ssec:ambient,ssec:characters}, for odd $k$ the ambient locus has dimension $\dim H^1(X,\Sigma;\C)=2g+\lvert\Sigma\rvert-1$, where $\lvert\Sigma\rvert$ is the sum of the $g_i$ over the vertices $i$ with $q_i\nmid k$; for even $k$ it has dimension \[ \dim E^-=\dimA+\sum_{c\ \mathrm{odd}}\dim Z_c , \] where $\dim Z_c$ is the number of vertices $i$ with $q_i\nmid k$ and $cq_i\equiv0\pmod k$. \begin{lemma}\label{lem:full} Let $\theta$ be admissible and reduced with $g\ge2$, and let $\Pi$ be a quadrilateral of type $\theta$. If the orbit closure of the unfolding of $\Pi$, in its stratum with the zeros marked and no other point, has dimension at least $\dim\amb$, then $\Mt=\amb$. \end{lemma} \begin{proof} Let $(X_\Pi,\omega_\Pi)$ be the unfolding, $\oc_\Pi$ its orbit closure and $V_\Pi$ the subspace with which $\oc_\Pi$ agrees near $[\omega_\Pi]$ (\cref{ssec:twist}). The unfolding is a point of $\Mcyc$, whatever the cyclic order of the angles of $\Pi$ (\cref{ssec:types}); so $\oc_\Pi\subset\Mt\subset\amb$. Near $[\omega_\Pi]$ the set $\Mt$ is a finite union of linear subspaces, each of dimension $\dim\Mt$, read at a lift if $(X_\Pi,\omega_\Pi)$ is an orbifold point; this union contains a neighborhood of $[\omega_\Pi]$ in $V_\Pi$, so one of the subspaces contains $V_\Pi$, as a non-empty open subset of a vector space is not contained in a finite union of proper subspaces. Hence $\dim\Mt\ge\dim V_\Pi\ge\dim\amb$. Now let $X$ be a generic point of $\Mcyc$ and $V=T_X\Mt$. Then $V\subset T_X\amb$ and $\dim V=\dim\Mt\ge\dim\amb$, so $V=T_X\amb$. If $k$ is odd, this is $H^1(X,\Sigma;\C)$; so $p(V)=H^1(X;\C)$ and $\rk\Mt=g$, and \cref{prop:high} gives $\Mt=\amb$. If $k$ is even, $V=E^-$, and the second paragraph of the proof of \cref{prop:dimension} gives $\Mt=\amb$. \end{proof} \subsection{The certificates}\label{ssec:cert} \begin{proposition}\label{prop:cert} Let $\theta$ be one of the $32$ types of \eqref{eq:residue} or one of the supplementary types $(1,4,8,11)$, $(3,4,8,9)$, $(4,5,7,8)$. Then $\Mt=\amb$. \end{proposition} Each of these types has $N\le32$, so the proposition is also contained in Delecroix and R\"uth's \cite[Theorem~4.2]{DelecroixRuth}, with the ambient strata read as our ambient loci; we prove it here from certificates in the deposit. \begin{proof} For each of these $35$ types, the deposit \cite{Record} gives a quadrilateral $\Pi$ of type $\theta$ (its vertices are listed there; for $(1,1,4,14)$ and $(1,2,3,14)$ the angles in cyclic order are $(1,4,1,14)$ and $(1,3,2,14)$, which \cref{lem:full} allows) whose vertices have coordinates in a real number field $\Bbbk$, and a list of non-zero vectors $\mathbf v\in\Bbbk^2$; \cref{tab:cert} records their number. Let $(X_\Pi,\omega_\Pi)$ be the unfolding of $\Pi$, with zero set $\Sigma_\Pi$; its periods lie in $\Bbbk+i\Bbbk$. We describe what is computed, in exact arithmetic in $\Bbbk$. For each listed $\mathbf v$ the computation finds cylinders $\mathcal C_1,\dots,\mathcal C_r$ of $(X_\Pi,\omega_\Pi)$ of direction $\mathbf v$, by the flow decomposition of the flatsurf library \cite{flatsurf,libflatsurf}, and it establishes that they are all the cylinders of direction $\mathbf v$. In most of the directions the areas of the $\mathcal C_i$ add up to the area of $X_\Pi$. In the others, whose number is in the last column of \cref{tab:cert}, a second program shows that every closed leaf of direction $\mathbf v$ lies in one of the $\mathcal C_i$, as follows. Let $J$ be the union of the edges, not parallel to $\mathbf v$, of the triangulation of $X_\Pi$ that cuts each copy of $\Pi$ by a diagonal (its vertices are the points over the vertices of $\Pi$, zeros and points of angle $2\pi$). A point $z$ of an edge of $J$ has the coordinate $\det(\mathbf v,z)$, with $z$ written in the plane of the copy of $\Pi$ that contains one of the two triangles on the edge, chosen once for each edge; this copy is the image of $\Pi$ under a product of reflections in lines through $0$ parallel to sides of $\Pi$, a matrix over $\Bbbk$, so that its vertices lie in $\Bbbk^2$. This coordinate is constant along each leaf of direction $\mathbf v$ inside a triangle; the copies of the two triangles on an edge are glued along it by a translation by a vector of $\Bbbk^2$, which changes the coordinate by a constant in $\Bbbk$; and it is strictly monotone along the edge, which is not parallel to $\mathbf v$. We orient each edge of $J$ so that the coordinate increases along it and lay the edges end to end, so that $J$ becomes, up to finitely many points, an interval of length $\sum_e\lvert\det(\mathbf v,e)\rvert\in\Bbbk$, the sum over the holonomies $e$ of the edges of $J$. Every leaf of direction $\mathbf v$ that meets no vertex crosses $J$, a closed one in finitely many points, and the map that sends a point of $J$ to the next point where its leaf crosses $J$ is an interval exchange in this coordinate, with the endpoints of its intervals in $\Bbbk$, which translates its $j$-th interval by $\epsilon_j\in\Bbbk$. Rauzy induction replaces an interval exchange by its first-return map to a shorter interval that every orbit meets, and an exchange that maps the union of its first $m$ intervals onto itself, for some $m$ less than their number, is split into the two exchanges on that union and on the rest; so a periodic orbit of the first exchange gives a periodic orbit of one of the exchanges the program ends with. These are of two kinds. An exchange of one interval that it maps to itself consists of closed leaves of one cylinder; these are grouped into cylinders by the classes in $H^1(X_\Pi,\Sigma_\Pi;\Z)$ given by intersection with their core curves (closed leaves of distinct cylinders have distinct classes, as two disjoint closed leaves homologous in $X_\Pi\smallsetminus\Sigma_\Pi$ bound a flat annulus), and a third program compares the cylinders so found with the flow decomposition: their number, their circumferences and areas, and the area outside them. For each other exchange the program gives a $\Q$-linear map $\varPhi\colon\Bbbk\to\Q$ and rational numbers $\varPsi_j$ such that $\varPhi(\epsilon'_j)+\varPsi_{j'}-\varPsi_j>0$, $\epsilon'_j\in\Bbbk$ the translation of its $j$-th interval, whenever the image of the $j$-th interval meets the $j'$-th, which it checks in exact arithmetic; such an exchange has no periodic orbit, as along one the translations add up to zero and the differences $\varPsi_{j'}-\varPsi_j$ cancel, while each term $\varPhi(\epsilon'_j)+\varPsi_{j'}-\varPsi_j$ is positive. This extends the one-step case of Boshernitzan's criterion \cite[Lemma~6.7]{Boshernitzan}, stated there for exchanges of rational rank two with $\varPhi$ the coefficient of the irrational parameter and all $\varPsi_j=0$. Now a cylinder of direction $\mathbf v$ contains a closed leaf that avoids the vertices and the countably many points of $J$ where the exchanges are not defined; that leaf gives a periodic orbit of a final exchange of the first kind, so the cylinder is one of those found. The $\mathcal C_i$ are cylinders of direction $\mathbf v$, so they are among those found; as the cylinders found are as many as the $\mathcal C_i$, they are the $\mathcal C_i$. The holonomy of the core curve of $\mathcal C_i$ is $s_i\mathbf v$ with $s_i\in\Bbbk$ positive, and $\lvert\mathbf v\rvert^2\operatorname{mod}(\mathcal C_i)$ is the area of $\mathcal C_i$ divided by $s_i^2$, an element $\mu_i$ of $\Bbbk$. Writing the $\mu_i$ in a basis of $\Bbbk$ over $\Q$ gives a rational matrix with $r$ rows; a rational relation holds among the moduli if and only if it holds among the entries of each column, so the vectors $(t_i)$ of \cref{lem:twist} are the real combinations of the columns. By \cref{lem:twist}, $V_\Pi$ contains the class $\sum_it_is_iI_{\mathcal C_i}$ for each column $(t_i)$. Finally the computation evaluates these classes, for all the listed $\mathbf v$, and the classes $\operatorname{Re}[\omega_\Pi]$ and $\operatorname{Im}[\omega_\Pi]$ on a basis of $H_1(X_\Pi,\Sigma_\Pi;\Z)$; the values lie in $\Bbbk$, and the rank of the matrix of values is $\dim\amb$, the number in the third column of \cref{tab:cert}. Real classes that are linearly independent over $\R$ are linearly independent over $\C$, so $\dim\oc_\Pi=\dim V_\Pi\ge\dim\amb$, and \cref{lem:full} applies. \end{proof} For the quadrilaterals $\Pi$ of the deposit the proof gives more: the orbit closure $\oc_\Pi$ of the unfolding of $\Pi$ is $\amb$ itself. By the proof of \cref{lem:full}, $\oc_\Pi\subset\amb$, and $V_\Pi$ lies in one of the linear subspaces with which $\amb=\Mt$ agrees near $[\omega_\Pi]$; as $\dim V_\Pi\ge\dim\amb$, it is that subspace. So near a point $x'$ of $V_\Pi$ close to $[\omega_\Pi]$ and on none of the other subspaces, both $\amb$ and $\oc_\Pi$ agree with $V_\Pi$. The argument of the second paragraph of the proof of \cref{prop:dimension}, with $\oc_\Pi$ in place of $\Mt$ and started at a point $y$ of $\Qc$ with $f(y)=x'$ in place of $(X/\iota,q)$ (it lies in $O$, as $f$ maps a neighborhood of $y$ into $\amb$, hence into $V_\Pi$ near $x'$), and for odd $k$ with the component of the stratum, in its own period charts, in place of $\Qc$ and $x'$ in place of $y$, then gives $\oc_\Pi=\amb$. \begin{table}[t] \centering \small \begin{tabular}{@{}lrrrr@{\qquad\quad}lrrrr@{}} \toprule $\theta$ & $k$ & $\dim\amb$ & dir. & n.c.p. & $\theta$ & $k$ & $\dim\amb$ & dir. & n.c.p. \\ \midrule $(1,1,2,6)$ & $5$ & $9$ & $7$ & $2$ & $(1,1,2,20)$ & $12$ & $12$ & $10$ & $2$ \\ $(1,1,4,10)$ & $8$ & $8$ & $6$ & $2$ & $(1,1,4,18)$ & $12$ & $10$ & $8$ & $2$ \\ $(1,2,3,10)$ & $8$ & $8$ & $6$ & $2$ & $(1,1,6,16)$ & $12$ & $12$ & $10$ & $2$ \\ $(1,2,4,9)$ & $8$ & $8$ & $6$ & $2$ & $(1,1,8,14)$ & $12$ & $12$ & $10$ & $2$ \\ $(2,4,5,5)$ & $8$ & $8$ & $6$ & $2$ & $(1,2,4,17)$ & $12$ & $10$ & $8$ & $2$ \\ $(1,1,2,16)$ & $10$ & $9$ & $7$ & $2$ & $(1,2,5,16)$ & $12$ & $12$ & $10$ & $2$ \\ $(1,1,4,14)$ & $10$ & $10$ & $8$ & $2$ & $(1,2,8,13)$ & $12$ & $12$ & $10$ & $2$ \\ $(1,1,6,12)$ & $10$ & $10$ & $8$ & $3$ & $(1,3,4,16)$ & $12$ & $10$ & $8$ & $2$ \\ $(1,2,3,14)$ & $10$ & $9$ & $7$ & $2$ & $(1,4,5,14)$ & $12$ & $10$ & $8$ & $2$ \\ $(1,2,4,13)$ & $10$ & $9$ & $7$ & $2$ & $(1,4,6,13)$ & $12$ & $10$ & $8$ & $2$ \\ $(1,2,5,12)$ & $10$ & $9$ & $7$ & $2$ & $(2,4,5,13)$ & $12$ & $10$ & $8$ & $2$ \\ $(1,2,6,11)$ & $10$ & $9$ & $7$ & $2$ & $(1,1,2,24)$ & $14$ & $13$ & $7$ & $0$ \\ $(1,3,4,12)$ & $10$ & $10$ & $8$ & $2$ & $(1,2,6,19)$ & $14$ & $13$ & $7$ & $0$ \\ $(2,3,3,12)$ & $10$ & $9$ & $7$ & $2$ & $(1,2,4,25)$ & $16$ & $16$ & $6$ & $0$ \\ $(2,3,4,11)$ & $10$ & $9$ & $7$ & $4$ & $(1,4,8,11)$ & $12$ & $10$ & $4$ & $0$ \\ $(2,3,6,9)$ & $10$ & $9$ & $4$ & $0$ & $(3,4,8,9)$ & $12$ & $10$ & $3$ & $0$ \\ $(3,3,6,8)$ & $10$ & $10$ & $3$ & $0$ & $(4,5,7,8)$ & $12$ & $10$ & $3$ & $0$ \\ $(1,1,1,21)$ & $12$ & $12$ & $10$ & $2$ & &&&& \\ \bottomrule \end{tabular} \caption{The types of \cref{prop:cert}: the dimension of the ambient locus, the number of directions used (dir.), and the number of them that are not completely periodic (n.c.p.).}\label{tab:cert} \end{table} \section{Proof of \texorpdfstring{\cref{thm:main}}{Theorem 1.1}}\label{sec:proof} Let $\theta$ be an admissible and reduced type that is not one of the seven types \eqref{eq:list}. We go through the cases. If $\theta=(1,1,1,1)$, then $X$ is a flat torus and $\Sigma=\emptyset$ (\cref{ssec:types}). The stratum of flat tori is a single orbit of $\GL^+(2,\R)$, which acts transitively on the lattices in $\C$; so the non-empty invariant subsets $\Mt\subset\amb$ of this stratum are both the whole stratum. Otherwise $g\ge2$, by \cref{lem:genus}. If $\theta$ is supplementary, $\Mt=\amb$ by \cref{thm:supp}; this includes the types $(1,4,8,11)$, $(3,4,8,9)$ and $(4,5,7,8)$, which rest on \cref{prop:cert}. If $\theta$ is not supplementary, it is open. If it is one of the $32$ types \eqref{eq:residue}, then $\Mt=\amb$ by \cref{prop:cert}. In every other case the rules reach $\theta$: by \cref{prop:census} if $N\le1000$, by \cref{thm:odd} if $N>1000$ and $k$ is odd, and by \cref{thm:even} if $N>1000$ and $k$ is even. For odd $k$, \cref{cor:endgame} then gives $\Mt=\amb$. For even $k$, $A=\FF$ by \cref{prop:reach}, so $Z_c\subset V$ for every odd relative character $c$ by \cref{prop:relative-full}, and \cref{cor:endgame} gives $\Mt=\amb$. In every case $\Mt=\amb$. Finally $k$ is odd if and only if $N$ is odd or $N\equiv2\pmod4$, and $\amb$ is then the connected component of the stratum of $(X,\omega)$; and $k$ is even if and only if $4\mid N$, and $\amb$ is then the locus $\Qt$ of holonomy double covers (\cref{ssec:ambient}). \qed \section*{Declarations}\phantomsection\label{sec:declarations} \subsection*{Use of AI} This paper and its results were produced by an AI research system that the author designed, built and directs, running on Anthropic's Claude Fable~5.2 in Claude Code and OpenAI's GPT-6.2 Astra in Codex. The author chooses the problems and prioritizes the work. Separate AI agents checked each result, and a second program confirmed the computations the proofs use, with any exceptions listed in the public deposit. The system also searched the literature and checked the citations against reliable sources. The author read the paper, reran the computations from the deposit and takes full responsibility for all of the paper's contents. \subsection*{Data availability} The programs and data used in this paper, with instructions for rerunning them, are deposited at Zenodo~\cite{Record}. \bibliographystyle{amsplain} \bibliography{refs} \end{document}