Orbifolds in Lean

This project started out with the goal to formalise some of the basic theory of orbifolds in Lean 4, but over time evolved into a sort of general staging ground for formalisation of various kinds of generalised differential geometry. Currently, the repository consists mostly of material on diffeological spaces and smooth spaces, but there are also formalisations of e.g. Frölicher spaces, cohesive topoi and various useful sites in the works. Current long-term goals include formalising the Cahiers topos with its differential cohesion, the quasitopos of concrete sheaves on any local site, and/or De-Rham cohomology of smooth spaces. Orbifolds will have to wait until there is enough material on higher category theory in mathlib to treat them properly; my hope is that the ongoing infinity-cosmos project will lay the groundwork for that.

Overview

The material currently featured in this repository includes:

Material that has been upstreamed from here to mathlib so far includes delta-generated spaces, global sections of sheaves and adjoint triples. More PRs are on the way / currently waiting for review.

References

The formalisation of diffeology here is based mostly on Patrick Iglesias-Zemmour's excellent book "Diffeology" and mathlib's formalisation of topology, since there are a lot of parallels to topology in the basic theory. Other files are mostly derived from the nlab and / various papers; I have made an effort to include proper attribution in the module docstring of each file.