r/PhilosophyofMath • • 15d ago

Why do we keep accepting Lean code as proofs?

Sorry if this is a dumb question but lately huge ai companies been churning out proofs left and right and I couldn’t find an answer to this.
From my understanding even if we assume the lean code is proving what it claims to prove and we assume Lean kernel is bug free (which is already a lot!) I haven’t found any source that proves that Lean representations are sound, so how can we trust them? I fear that even tho a proof compiles and is derivable in Lean that doesn’t mean it is automagically true? Or am I missing something? Would love to hear your opinion if you are or aren’t convinced by a bundle of code some LLM produced

215 Upvotes

409 comments sorted by

View all comments

9

u/Normal-Avocado-8349 15d ago

Why would you accept language as proof? Which do you think is more reliable?

1

u/dan-the-raccoon 15d ago

well i think deductions in a formal system over a sound logic are reliable myself so i guess i should have phrased my question better

10

u/Remote-Dark-1704 12d ago

thats what lean is

3

u/Embarrassed_Range356 12d ago edited 12d ago

Exactly. This is the whole point of mathematics, to formalize logic and come up with a formal system that describes the world. It is ONLY natural that such a logical, formal system would be done on computers, and that computers could then more rigorously do.

Computer proofs are the holy grail and future of mathematics

0

u/r_search12013 12d ago

that's more computer science than it is mathematics for a reason once there's computers involved .. computability and all

2

u/Embarrassed_Range356 12d ago

Computer science really has nothing to do with computers, except that it resulted in building machines that could compute. Fundamentally the two fields are hard to distinguish at the theoretical level.

Every effective formal mathematical system is computational, and every formal proof within such a system is a mechanically verifiable computational object.

1

u/r_search12013 11d ago

I'm absolutely open to have algebraic k-theory of the integers lean computed for me .. I don't see that happening though

1

u/RevolutionaryPie7790 12d ago

why do you trust zfc more than the calculus of dependent constructions?

1

u/r_search12013 11d ago

I love that zfc entered the chat a while ago, there's a few comments like that

and it made me dream a bit: imagine if the riemann hypothesis proof with 250k pages of lean actually absolutely correctly compiles and even proves the riemann hypothesis and does so by finding a paradox in zfc.. then we'd be in for a refined set theory stepping back from a disaster like russell's paradox

1

u/RevolutionaryPie7790 11d ago

lean is not based on zfc..

1

u/logbybolb 11d ago

but a contradiction in Lean’s type theory (CiC) implies a contradiction in ZFC+”there are at least countably infinitely many inaccessible cardinals”, because those two theories have been shown to interpret eachother.

1

u/Wonderful-Habit-139 11d ago

It’s 17 million lines of code. The 250k+ pages are for the natural language proof.

1

u/Crandom 10d ago

I would argue we shouldn't accept proofs without a Lean formalisation (or similar) now we have the technology.