Remix.run Logo
▲ vermilingua a day ago

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.

▲zarzavat a day ago | parent | next [-]

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

▲ted_dunning 5 hours ago | parent | prev | next [-]

It has nothing to do with mathlib, but, yes, Lean is incredibly good at encoding what are essentially new language features.

That is, in fact, one of the great difficulties in getting good at doing proofs with Lean because so much of what you see is not the base language and thus tends to be changing rapidly which makes reading old documentation very confusing.

▲gus_massa a day ago | parent | prev | next [-]

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 a day ago | parent | prev [-]

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