Higher order differential calculus in mathlib
Higher-order differential calculus is essential for formalizing analysis and differential geometry, but formalizing it in a proof assistant requires departures from standard textbook definitions to support broad applications.
The authors develop a higher-order differential calculus library inside Lean's Mathlib. They allow arbitrary fields of scalars, work with functions defined on domains rather than full spaces, and integrate analytic functions in the broader scale of smooth functions. These generalizations introduce challenges addressed from both mathematical and formalization perspectives.
The library is part of Mathlib and supports a broad range of applications. The design choices (domain-based definitions, arbitrary scalar fields, smooth-analytic integration) resolve significant formalization challenges while remaining mathematically general.
