Atkin–Lehner Quotients

Rational points on the star curves $X_0^*(N)$

Sachi Hashimoto
University of Colorado Boulder

joint with Eran Assaf and Ari Shnidman

Modular curves and Applications of AI to Number Theory
Opatija, 16 September 2026 · arXiv:2609.00516

Working with AI · 1

Writing this talk

grill-me skill

Interview me relentlessly about every aspect of this plan … For each question, provide your recommended answer.

Ask the questions one at a time. … Finding facts is your job, never the user’s. … The decisions are the user’s: put each to them and wait.

… done when every branch of the design tree has been visited and nothing is left silently assumed.

Talk spine: … Which is the destination the whole talk walks toward?

A. The search / boundedness conjecture.

B. “Explaining” exceptional points.

➡️ C. The paper’s own two-act arc.

D. C, plus a third act on how the computation was actually done

> I think D, but with vertical slides: … the 2 act arc, and then putting in vertical slides about the AI / code parts, in each of the 2 acts.

Galbraith's example, $X_0^*(137)$

$X_0^*(137) \subset \PP^3$, genus 4, the canonical model drawn in the affine chart $z - w = 1$. Galbraith found the starred rational point. It is not the cusp, and it has no complex multiplication.

Star curves

The star curve of level $N$ is the quotient of $X_0(N)$ by the full group of Atkin–Lehner involutions, $$X_0^*(N) \colonequals X_0(N)/W(N).$$

  • Throughout, we assume $N$ is squarefree.
  • Since $N$ is squarefree, $X_0^*(N)$ has exactly one cusp, and it is rational.
  • Rational points on $X_0^*(N)$ give low degree points on $X_0(N)$.

Moduli interpretation

Elkies: for any number field $K$, the non-cuspidal points of $X_0^*(N)(K)$ are the $K$-curves of degree $d \mid N$, i.e. $E/\overline{K}$ that is $d$-isogenous to all of its Galois conjugates.

Over $\Q$: these are the $\Q$-curves, a mild generalization of elliptic curves over $\Q$, arising as quotients of $X_1(M)$.

Definition A rational point of $X_0^*(N)$ that is neither the cusp nor a CM point is called exceptional.

So Galbraith's point on $X_0^*(137)$ is exceptional.

Star curves tend to have many rational CM points.

Two questions

Part I. How many exceptional points are there?

Conjecture (Elkies) There are only finitely many $N$ such that $X_0^*(N)$ has an exceptional rational point.

A generalization of Serre uniformity to discrete arithmetic subgroups of $\PGL_2^+(\Q)$. Elkies states it for points of any fixed degree $d$; we take $d = 1$.

Part II. Can we explain the existence of exceptional points, when they arise?

The algorithm

steps 1–4: finding exceptional points

  1. Construct a canonical model for $X_0^*(N)$ from a basis $f_1, \dots, f_g \in S_2(\Gamma_0(N))$ of the forms with Atkin–Lehner eigenvalue $+1$ for every $p \mid N$.
  2. Search for rational points in a box: a lower bound on $X_0^*(N)(\Q)$.
  3. Count the rational CM points exactly, by Shimura reciprocity.
  4. Compare. More points than CM points plus one $\Rightarrow$ an exceptional point.
Remark When $N$ is squarefree, assuming BSD, $\rank J_0^*(N) \geq g$, so we cannot use Mazur's formal immersion method. At non-squarefree level one can often take advantage of a rank zero quotient (H.–Keller–Le Fourn).

Shimura reciprocity

the CM points of an order

Let $R$ be an order in an imaginary quadratic field $K$.

Definition
$\CM(R)$
the cyclic $N$-isogenies $E \to E'$ with $R = \calO_E \cap \calO_{E'}$, as points of $X_0(N)(\Qbar)$.
$\overline{\CM}(R)$
their image on $X_0^*(N)(\Qbar)$.

$\CM(R)$ is exactly the set of conjugacy classes of optimal embeddings $R \hookrightarrow \calO$ into the Eichler order $\calO = \left(\begin{smallmatrix} \Z & \Z \\ N\Z & \Z \end{smallmatrix}\right) \subset \mathrm{Mat}_2(\Z)$ of level $N$.

We can write down $\CM(R)$, and Shimura reciprocity describes the $\Gal_\Q$ action on these points.

Working with AI · 2

Developing the code

The starting point for the code is assaferan/ShimuraCurveALQuotients (Assaf–H.), which contains functionality for Atkin–Lehner quotients of the Shimura curves $X_0(D,N)$. Written by hand from 2023; co-developed with Claude since last year; now developed by Claude.

From the Shimura curve code:

  • the Atkin–Lehner group arithmetic
  • genus formulas
  • counting optimal embeddings
  • elliptic and fixed points by CM order
  • fields of definition of CM points

The models of $X_0^*(N)$ are based on sachihashimoto/X0Nstarquotients as well as TimoKellerMath/QuadraticPoints.

H.–Keller–Le Fourn; Adzaga–Keller–Michaud-Jacobs–Najman–Ozman–Vukorepa

This project moved quickly because it did not start from scratch.

Counting the CM points

Proposition (Ogg, Eichler) For $N$ squarefree, $\CM(R) \neq \emptyset$ if and only if no prime $p \mid N$ is inert in $R$, in which case $$\#\CM(R) = h(R)\cdot 2^{\omega(N(R))}, \qquad \#\overline{\CM}(R) = \frac{\#\CM(R)}{2^{\omega(N) - \varepsilon(N,R)}}.$$
  • $h(R)$ is the class number.
  • $N(R)$ is the product of the primes $p \mid N$ that split in $K$ or divide the conductor of $R$.
  • $\varepsilon(N,R) \in \{0,1\}$ records whether $\operatorname{disc}(R)$ belongs to an order whose CM points are fixed by some $w_m$, $m > 1$.

Which of them are rational?

Fields of definition

Because $\Gal_\Q$ acts transitively on $\overline{\CM}(R)$, we have:

Proposition Assume $N$ squarefree and $\CM(R) \neq \emptyset$. Every $P \in \overline{\CM}(R)$ has $$[\Q(P) : \Q] \;=\; h(R) \big/ 2^{\omega(N/N(R)) - \varepsilon(N,R)}.$$
  • Degree $d$ forces $h(R) \leq d \cdot 2^{\omega(N)}$: only finitely many orders contribute.
  • Summing over the orders with $d = 1$ gives the rational CM points exactly.
  • Taking $d = 2$ gives the quadratic CM points, which we will need in Part II.

Genus 3 and 4: new exceptional points

205 star curves of squarefree level, genus 2 through 7. In genus 2 there are exactly 51 exceptional points, by elliptic and quadratic Chabauty:

Bars–González–Xarles · Adžaga–Chidambaram–Keller–Padurariu · Balakrishnan–Dogra–Müller–Tuitman–Vonk

In genus 3 and 4, one exceptional point per curve. Galbraith found those at 137 and 311; the other twelve are new.

Genus 3Genus 4
178$2 \cdot 89$137prime
183$3 \cdot 61$311prime
246$2 \cdot 3 \cdot 41$ 370$2 \cdot 5 \cdot 37$
290$2 \cdot 5 \cdot 29$ 399$3 \cdot 7 \cdot 19$
310$2 \cdot 5 \cdot 31$
318$2 \cdot 3 \cdot 53$
329$7 \cdot 47$
430$2 \cdot 5 \cdot 43$
455$5 \cdot 7 \cdot 13$
510$2 \cdot 3 \cdot 5 \cdot 17$

Genus 5, 6 and 7: nothing

99 curves. No exceptional points found.

Proposition Let $N$ be squarefree with $X_0^*(N)$ of genus $g \in \{5,6,7\}$, and let $X \subset \PP^{g-1}$ be the canonical model built from the Hermite normal form basis of the saturated lattice of integral $q$-expansions of the $+1$ eigenforms. Then every rational point of $X$ of height at most $10^6$ is the cusp or a CM point.*

* Identifying a point as a CM point is numerical, to high precision, not rigorous.

Proving that no exceptional point exists at all would need quadratic Chabauty, where the obstacle is the local heights at $N$.

The coefficients of these models are small: over 75% of the nonzero ones have a single digit, so a much larger search is unlikely to help.

An effective Elkies conjecture

Conjecture Let $N$ be squarefree. If $X_0^*(N)$ has genus at least 5, then every rational point of $X_0^*(N)$ is the cusp or a CM point.

Rational points on $X_0^*(N)$, by genus

Counting rational CM points is cheap, so, granting the conjecture, we can compute $\#X_0^*(N)(\Q)$ far beyond the range we can search: it sits between 1 and 13, and the distribution barely moves from genus 5 to genus 20.

Disc area is the fraction of the $n$ squarefree levels of that genus whose star curve has that many rational points. Dashed: the median.

Why do exceptional points appear?

Mazur and Ogg: on $X_1(N)$ and $X_0(N)$, the rational points that exist are the ones geometry accounts for.

We know which cusps and CM points exist. To explain a point, we need to know where they lie.

The algorithm

steps 5–8: explaining exceptional points

  1. Identify the CM points on the canonical model, by evaluating $f_i(\tau)$.
  2. Identify the cusp, as the limit $\tau \to i\infty$.
  3. Find the degree 2 CM points by Shimura reciprocity, and identify them on the model.
  4. Explain the exceptional point, using the CM points and the cusp.

Evaluation of modular forms at CM points

Fix a basis $f_1, \dots, f_g$ for $S_2(\Gamma_0^*(N))$. The canonical map is $\tau \mapsto [f_1(\tau) : \cdots : f_g(\tau)]$, and the cusp is its limit as $\tau \to i\infty$.

If $\tau \in \CM(R)$ has stabilizer of order $h$ in $\Gamma_0^*(N)/\{\pm 1\}$, then a uniformizer at $\tau$ is $t = w^h$, so each $f_i$ vanishes to order $h-1$. The image is

$$\tau \;\longmapsto\; \bigl[\vartheta^{(h-1)}f_1(q) : \cdots : \vartheta^{(h-1)}f_g(q)\bigr], \qquad \vartheta = q\frac{d}{dq}.$$

Differentiating $h-1$ times recovers the values, up to scaling. Matching is numerical, to high precision, and not rigorous. To certify it one could use Schofer's formula, or the $j$-map $X_0(N) \to X(1)$; both are expensive as the level grows.

Working with AI · 3

Unknown unknowns

It is easy to think you understand the mathematics when you are not the one doing it.

  • What I thought we should do: evaluate $f(\tau)$ at the CM points.
  • 137 worked largely by hand, then handed to Claude: replicate it, extend it to other levels.
  • Claude produced plausible code. It never reproduced all of Galbraith's values, at the other levels and the other CM points.

The failure did not look like a misunderstanding. It looked like a bug.

Automorphisms

Definition $x \in X_0^*(N)(\Q)$ is explained by automorphism if $\alpha(y) = x$ for some $\alpha \in \Aut(X_0^*(N))$ and some $y \in X_0^*(N)(\Q)$ that is the cusp or a CM point.

Automorphisms explain 58 of the 65 known exceptional points.

genusexplainedofby
24951 47 hyperelliptic, 2 bielliptic on $X_0^*(129)$
3810bielliptic
414bielliptic

Bars and González determined $\Aut(X_0^*(N))$ for all squarefree $N$ and found every nontrivial case. We checked each one: no automorphism produces an exceptional point beyond those already found.

Collinearity

Write $K_X$ for a canonical divisor on $X = X_0^*(N)$, and $\equiv$ for linear equivalence.

Definition $x \in X_0^*(N)(\Q)$ is explained by collinearity if $$x + D \equiv K_X$$ for some $D$ supported on cusp and CM closed points.

$D$ is supported on closed points, so it is defined over $\Q$; then so is $K_X - D$, and it has degree 1, which is why $x$ is rational.

  • $g = 2$: $\deg K_X = 2$, so $D = \iota(x)$ for the hyperelliptic involution $\iota$
  • $g = 3$: $X$ is a plane quartic, and three cusp-or-CM points on a line force the fourth to be rational

Introduced by Derickx, H., Najman and Shnidman, for all modular curves $X_G$.

$X_0^*(137)$, explained

The plane $x + 2z + 2w - y = 0$ spanned by the cusp and the rational CM points of discriminant $-11$ and $-4$.

$g = 4$, so the plane section has six points: the cusp, $D = -11$, $D = -4$, a conjugate pair with $D = -32$, and one more. Five are cusps or CM points, so the sixth is rational. It is Galbraith's point. Castaño-Bernard had already observed collinearity properties of these points.

The points on $X_0^*(137)$ and $X_0^*(311)$ are the two we certify rigorously, via the $j$-map $X_0(N) \to X(1)$.

How much of a coincidence is that?

Collinearity needs a $\Q$-hyperplane cutting out $D$ of degree $2g-3$ on the cusp and CM closed points. But $g-1$ points in general position already determine a hyperplane.

So collinearity is $g-2$ coincidences.

  • $g = 3$: one coincidence. Two points determine a line; the third has to land on it.
  • $g = 4$: two.
  • $g \geq 5$: more, and fewer CM points to draw on.

Non-uniqueness of collinearity relations

At $N = 137$ the exceptional point is also coplanar with the CM points of discriminants

$\{-112,-19,-11,-7\}$,   $\{-427,-19,-4\}$,   $\{-72,-7,-4\}$,   $\{-112,-8,\text{cusp}\}$

the last three with tangencies at $-19$, $-7$ and the cusp. All rigorously certified.

Across the 14 exceptional points in genus 3 and 4 there are 34 confirmed hyperplanes through cusps and CM points, and 10 of the 14 levels carry more than one.

This is a statement about the curves, not about the search.

Working with AI · 4

Underspecification

“Check whether these points are coplanar.”

  • Coplanar to what tolerance, with what confidence? Too loose, and you invent a plane that is not there.
  • A long unsupervised run came back unable to recognize the collinearity at 137 or 311, which I had done by hand.
  • LLL and the working precision stayed vague for months, until outside review.

Being precise in advance is hard. Have the model interview you about the plan first, and make regular review by other agents and humans part of the process.

Two points left over

Collinearity explains all 14 exceptional points in genus 3 and 4, and in genus 2 it coincides with the hyperelliptic involution.

Together with automorphisms, that leaves two of the 65 unexplained: a pair on the genus 2 curve $X_0^*(286)$. They form an orbit for $\Aut(X_0^*(286)) \simeq \Z/2\Z$, but both are exceptional, so neither is the image of a cusp or a CM point.

Highlighted as mysterious in the earlier genus 2 work.

Elliptic covers

Definition $x \in X_0^*(N)(\Q)$ is explained by elliptic cover if there is an elliptic curve $E$ and a map $\pi \colon X_0^*(N) \to E$ whose fiber $\pi^{-1}(\pi(x))$ is supported on $x$ together with cusps and CM points.

Degree 2 is bielliptic, already counted, so the new content is degree 3.

Triple covers, classified

We prove a degree formula for $\pi \colon X_0^*(N) \to E$ and use it to classify triple covers. These are all 48 pairs $(N, E)$.

$N$$E$
genus 2
154154a1
15477a1
285285b1
28557a1
286143a1
286286c1
genus 3
185185c2
246123b1
24983a1
258258a1
282141d1
29058a1
310155c1
$N$$E$
genus 3
318318c1
429143a1
430430a1
45591a1
46277a1
genus 4
201201a1
202101a1
214214b1
219219a1
254254c1
262131a1
262262b1
26789a1
$N$$E$
genus 4
30561a1
354118a1
39579a1
39957a1
426142b1
434434a1
570190b1
57057a1
genus 5
23779a1
393131a1
402201a1
438219a1
465155c1
$N$$E$
genus 5
574574a1
79857a1
91091a1
genus 6
163163a1
269269a1
274274c1
291291c1
590118a1
genus 7
87058a1

Cremona labels. Extends the degree 2 classification of Bars and González. In 11 cases an exceptional point shares a fiber with CM points.

Working with AI · 5

Tests and trust

Do not assume Claude will handle the software engineering.

  • Tests by capture-and-diff: run the code, record everything it prints, check that it does not change.
  • Comments longer than the code they explain.
  • The same computation repeated instead of being factored out.
  • Code that was hard to read.

Explanations summary

Elliptic triple covers explain the two remaining points on $X_0^*(286)$, and give second explanations for many of the others.

mechanismexplainsof 65
automorphism49 in genus 2, 8 in genus 3, 1 in genus 458
collinearity47 in genus 2, all 14 in genus $\geq 3$61
elliptic cover11 bielliptic, 11 by triple cover, including both points on $X_0^*(286)$22

Every known exceptional point on a squarefree star curve arises from cusps and CM points by geometry.

For automorphisms and elliptic covers we also check the mechanism is exhausted: they recover only the exceptional points already found.

Conjecture Let $N$ be squarefree. If $X_0^*(N)$ has genus at least 5, then every rational point of $X_0^*(N)$ is the cusp or a CM point.

Links

These slides: sachihashimoto.github.io/talks/opatija