Synthetic Differential Geometry in Lean
Synthetic differential geometry (SDG) provides an alternative foundation for differential calculus using nilpotent infinitesimals, but it had not been formalized in the Lean proof assistant with mathlib.
The authors formalize synthetic differential geometry in Lean 4 using the mathlib library. The main result proved and formalized is a Taylor theorem for functions of several variables, where the series expansion is around an infinitesimal neighborhood. Most proofs are new. The work highlights the possibility of using mathlib to do constructive mathematics within the SDG framework.
The formalization produces a machine-checked proof of a multivariate Taylor theorem in the synthetic differential geometry setting, with most proofs being novel constructions developed during the formalization process.
