# R5. The trace formula and Beyond Endoscopy

## Idea

The trace formula compares spectral and geometric data. It gives Jacquet-Langlands, base change, Langlands-Tunnell and the endoscopic classification. Beyond Endoscopy (Langlands 2004) tries to detect the poles of $L(s, \pi, r)$ in a limit of the stable trace formula, and so to reach functoriality in general.


## Key obstruction

The trace formula has no Lean code. The formula of Arthur for $\mathrm{GL}_2$ alone is about 100,000 lines of Lean or more, a guess of the project. Beyond Endoscopy has given no new transfer. Its main terms are controlled, but beyond $\mathrm{GL}_2$ its error terms in the limit are not.

