Show HN: Formalizing Principia Mathematica using Lean

github.com

150 points by ndrwnaguib 19 hours ago


This project aims to formalize the first volume of Prof. Bertrand Russell’s Principia Mathematica using the Lean theorem prover. Throughout the formalization, I tried to rigorously follow Prof. Russell’s proof, with no or little added statements from my side, which were only necessary for the formalization but not the logical argument. Should you notice any inaccuracy (even if it does not necessarily falsify the proof), please let me know as I would like to proceed with the same spirit of rigour. Before starting this project, I had already found Prof. Elkind’s formalization of the Principia using Rocq (formerly Coq), which is much mature work than this one. However, I still thought it would be fun to do it using Lean4.

https://ndrwnaguib.com/principia/

https://github.com/ndrwnaguib/principia

looofooo0 - 18 minutes ago

Nice, really great work. How did you get into lean?

Few style Remarks: I personally would not call them Prof. Or Dr. In formal English that would be the latter. But the name of them stands for itself.

meghprkh - 11 hours ago

What is the real difference between rocq vs lean? Alternatively, what is your motivation to do this in lean as compared to playing around with the rocq one if it exists?

I recently completed the natural number lean game and found it pretty fun, and would like to learn more about the differences between the two. Thanks!

resters - 18 hours ago

This is useful to anyone who wants to reason through the proofs constructively and tinker with the approaches. Thank you!

hackandthink - 16 hours ago

I only see these very initial propositional theorems.

Am I missing something, or has the project only just begun?

https://github.com/ndrwnaguib/principia/blob/main/Principia/...

ks2048 - 11 hours ago

This is cool and I looked into this many years ago (using MetaMath).

Sorry if this is obvious in one of the links, but does there exist a high quality “OCR-ed” version of the original text?

grandempire - 16 hours ago

It looks like you just have a few pages written. Is that right?

Which theorem are you trying to prove?

wanderlust123 - 18 hours ago

What do you think of using something like naproche?

krick - 18 hours ago

> Although the Principia is thought to be “a monumental failure”, as said by Prof. Freeman Dyson

I'd like some elaboration on that. I failed to find a source.

StarlaAtNight - 12 hours ago

When I saw “Lean” I thought https://en.m.wikipedia.org/wiki/Lean_manufacturing