Zulip Chat Archive

Stream: mathlib4

Topic: Topos theory in lean


Colby Brown (Oct 11 2025 at 06:06):

Hello, I have been working through "Sheaves in Geometry and Logic" by Mac Lane and Moerdijk in Lean and I have finished proving that every topos is cartesian closed, theorem IV.2.1. I have not seen topos theory in lean before so I am wondering if this would be a good addition to mathlib. My code is here: https://github.com/colbyaustinbrown/sigal/blob/main/Sigal/Chapter4/Basic.lean, it will need a bit of work to make it more readable and mathlib style guide compliant, but I am wondering if there is any desire for this code in mathlib or other advice about this project.

Kevin Buzzard (Oct 11 2025 at 06:13):

@Bhavik Mehta

Adrian Marti (Oct 11 2025 at 16:06):

See this for logical aspects of topos theory (I'm currently thinking about how to do terms in a pretty general setting).

Adrian Marti (Oct 11 2025 at 16:06):

There is also a partial port of Bhavik Mehta's topos theory repository in Lean 3 here, related to a thesis project at the university of Bonn.


Last updated: Dec 20 2025 at 21:32 UTC