On the paucity of lattice triangles
The lattice triangle problem asks which rational triangles unfold to Veech surfaces. In the hard obtuse window (largest angle in (π/2, 2π/3]) no lattice triangles are conjectured to exist. The goal is to rule out almost all triangles in this window with denominator n.
The Mirzakhani–Wright rank obstruction, in the number-theoretic form of Larsen–Norton–Zykoski, reduces the problem to finding a usable unit a mod n satisfying two modular inequalities. The authors count such units with a sum S(p,q), expand it via discrete Fourier analysis into Ramanujan sums, and bound the error term using the vanishing of Ramanujan sums when n has a large prime factor. The main analytic estimate, Theorem 6.1, was autoformalized in Lean/Mathlib by AxiomProver from a natural-language draft. During formalization AxiomProver also corrected mistakes in that draft.
For n with a sufficiently large prime factor, all but a vanishing proportion of candidate triangles fail the lattice property. Overall, all but a proportion n^{-1+o(1)} of triangles in the window are excluded. The key lower bound S(p,q) ≥ 5 for almost all pairs was formally verified in Lean, while deep external results such as the rank obstruction were taken as given.
