Counting points with Riemann-Roch formulas
Jorge Martín-Morales
TL;DR
This work studies exact lattice-point counts in rational triangles by connecting counting functions to Riemann–Roch on weighted projective planes and to cyclic quotient singularities. It develops a residue-theoretic RR formula $L_w(d)=1+\frac{d(d+|w|)}{2\bar w}+R_w(d)$, where the correction term $R_w(d)$ is governed by local $\Delta$-invariants and Dedekind-sum-type residues, enabling precise counts via singularity theory. An efficient algorithm for computing the correction term uses a Euclidean-division recursion with worst-case Fibonacci complexity, and the noncoprime case is reduced to coprime weights. A detailed example demonstrates the full pipeline, linking intersection theory, resolution of singularities, and $\Delta$-invariants to obtain the exact count, showcasing practical impact for exact lattice-point enumeration in rational polyhedra and advancing connections between Ehrhart-type problems and singularity theory.
Abstract
We provide an algorithm for computing the number of integral points lying in certain triangles that do not have integral vertices. We use techniques from Algebraic Geometry such as the Riemann-Roch formula for weighted projective planes and resolution of singularities. We analyze the complexity of the method and show that the worst case is given by the Fibonacci sequence. At the end of the manuscript a concrete example is developed in detail where the interplay with other invariants of singularity theory is also treated.
