Zulip Chat Archive

Stream: new members

Topic: Type theory types and lemmas in std/mathlib?


aron (May 23 2025 at 14:48):

I'd like to experiment with type systems, trying to see if I can implement my own, exploring different types systems and so on.

Are there any types/constructs for this in the Stdlib or Mathlib? Where would be the best place for me to start looking?

aron (May 23 2025 at 14:53):

(btw I am not a mathematician so if in doubt pls err on the side of assuming I don't know something than vice versa :sweat_smile:)

Luigi Massacci (May 23 2025 at 15:05):

I would rather suggest ditching lean all together, and looking at things like Software Foundations (Volume 2 in particular) which is based on Coq.

Luigi Massacci (May 23 2025 at 15:07):

Another big classic is Programming in Martin-Lof Type Theory which has a bunch of examples in ML (this is a bit old though)

Luigi Massacci (May 23 2025 at 15:07):

Personally I really enjoyed Program == Proof by Samuel Mimram which has plenty of examples in Ocaml and Agda

Luigi Massacci (May 23 2025 at 15:09):

For experimenting with type theory, I'd say you are much better off with Coq and Agda, as those communities are heavily interested in that kind of stuff so there's a lot more material out there


Last updated: Dec 20 2025 at 21:32 UTC