logoalt Hacker News

vermilingua • today at 1:05 AM • 3 replies • view on HN

How is it that Lean can represent new mathematics? Is Lean expressive enough to encode what would essentially be new language features? I might be looking at this through more of a software lens than I should, but intuitively it seems that if it has been proved in Lean using only Mathlib, it has constructed the proof with only existing mathematics.


Replies

zarzavat • today at 2:05 AM

You have to distinguish between adding new mathematical concepts and adding new foundations.

Adding new concepts is essentially equivalent to adding new types to a software program.

Adding new foundations would generally be considered a defect in the context of proving a statement about numbers.

Mathematicians want the most powerful tools built on the simplest foundations. The more you extend the foundations the more likely it is to end up with a logical system that is inconsistent (i.e. useless).

Mathematicians have hit this wall over[0] and over[1] again and learned to be minimalist in their choice of foundations.

[0] https://en.wikipedia.org/wiki/Russell%27s_paradox

[1] https://en.wikipedia.org/wiki/System_U#Girard's_paradox

gus_massa • today at 1:11 AM

You can add new theorems to a Lean project, and even "upstream" them to Mathlib. It may be an old theorem that is in a book or a complete new theorem that you just proved.

auggierose • today at 1:12 AM

Mathlib itself is just Lean. New definitions is how you introduce new concepts.