Dilatations of categories, via their lean formalization
Dilatations of categories generalize both localization and dilatations of rings via a center: a family of morphisms paired with sieves over their codomains. The theory had only informal published exposition.
The dilatation is built in Lean 4 as a quotient of a category generated from the localization quiver, reusing Mathlib's sieves and Gabriel–Zisman localization machinery rather than formalizing fraction sequences directly. Centers are encoded as a Lean structure with indexed families. A canonical functor and universal property are established, and comparison functors for restriction, sieve shrinking, and staged dilatations are derived by specializing the universal property. An appendix pairs each mathematical statement with its Lean declaration.
A full formalization of the construction and its main theorems is provided, including corrections and clarifications produced during formalization, intended also as informal/formal training material for AI systems.
