Most active commenters
  • krick(3)

←back to thread

173 points ndrwnaguib | 14 comments | | HN request time: 0.986s | source | bottom

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

Show context
krick ◴[] No.43797518[source]
> 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.

replies(3): >>43797657 #>>43798512 #>>43800892 #
1. Jtsummers ◴[] No.43797657[source]
https://www.youtube.com/watch?v=9RD5D4swZfk - Possibly this.
replies(2): >>43797812 #>>43797894 #
2. imglorp ◴[] No.43797812[source]
TLDW: Godel's incompleteness theorem is at odds with the goals of Principia.
replies(3): >>43797837 #>>43797935 #>>43798256 #
3. ◴[] No.43797837[source]
4. krick ◴[] No.43797894[source]
Thanks. It appears, however, that Dyson considers the whole approach a failure (referring to Gödel as a demolisher of it). So while he is saying it about a book, ironically, it seems hardly applicable in this context anymore. Because with this reasoning, any program in Lean (and the Lean programming language itself) should be seen as "a monumental failure".
replies(1): >>43798008 #
5. yablak ◴[] No.43797935[source]
Which is weird because he used the formalism of principia to actually state the theorem, or at least part of it
replies(1): >>43798717 #
6. jandrese ◴[] No.43798008[source]
This is just my opinion, but reading about Bertrand Russell my impression is that he dedicated his life to Pincipia Mathematica partially because he expected to find God in the foundations of the mathematics, and when that didn't happen it drove him rather insane. And then Gödel shows up and basically knifes him on stage with the Incompleteness Theorm.
replies(3): >>43798399 #>>43798533 #>>43799181 #
7. mikrl ◴[] No.43798256[source]
I remember my Java IDE in undergrad warned me about an infinite loop, and this was before I learned about the diagonalization proof of the non-computability of the halting problem, one of my favourite proofs ever. The fact that not all programs and inputs can be shown to halt did not stop the engineer who wrote that guardrail for the IDE.

Surely the principia and similar efforts will still yield useful results even if they cannot necessarily prove every true statement from the axioms?

replies(1): >>43800322 #
8. krick ◴[] No.43798399{3}[source]
I would like if you could refer me to that reading as well. I really know nothing about, uh, any of that, so I cannot judge. But your description strikes me as rather weird: "dedicating his life" seems a bit dramatic, since Principia is a pretty early work of his. He was active for 50-60 more years since he must have been "driven insane", as you say. Most of his famous works were written after that. Also, all of famous results of Gödel were after Russell finished with Principia. Not that he ever finished, but given the fact Second Edition was 15 years after the First one, and mostly contained relatively minor fixes… it seems only logical to conclude that he wasn't pursuing the topic after the first publication, basically, ever since realizing how big of a task would it be to try and formalize all of math like that.
9. psychoslave ◴[] No.43798533{3}[source]
I don't know what you red about Russell, but in my own readings he has always been presented as a fervent atheist, so except with a far stretched interpretation of "neutral monism" as some form of gnoseologic divinity, it's hard to imagine such a character looking for any god.

Also Russel himself ruined the cathedral of Frege with its eponymous paradox, he was clearly among the best to understand how a thing like Godel's incompleteness theorem could come along the way.

And for his relation to madness, his personal life have been felt with many turmoil from an early age. If anything it seems that mathematics saved him, preventing his early desire for suicide.

https://plato.stanford.edu/entries/neutral-monism/

https://en.wikipedia.org/wiki/Copleston%E2%80%93Russell_deba...

replies(1): >>43801275 #
10. grandempire ◴[] No.43798717{3}[source]
Russel builds a logical system - it just can’t ground mathematics. Gödel’s paper is about the system in Russels book.
11. davidrjones1977 ◴[] No.43799181{3}[source]
I believe you are thinking of Cantor, regarding God and subsequent insanity. And it was Russell who knifed Frege. :-)
12. jhanschoo ◴[] No.43800322{3}[source]
Yes, you can't prove important properties of the class of all programs, but you can prove properties of smaller, limited classes of programs that you are interested in.

So the Java IDE had been able to recognize an infinite loop of the kind you wrote by an algorithm, that can be proven to be correct for a limited class.

On the other hand, you can loop infinitely deciding to exit on the return value of opaque calls to some entity external to your analyzer, and your IDE shouldn't be able to catch that.

replies(1): >>43801244 #
13. ◴[] No.43801244{4}[source]
14. vixen99 ◴[] No.43801275{4}[source]
Incidentally his co-author AN Whitehead was not an atheist as a reading of Science and the Modern World (from lectures at Harvard in 1926 I think.) makes clear.