| ▲ | dnautics an hour ago | |||||||
> capability is essentially a superset of all other FPs Is that what we really want? For SW verification you mostly want "just plain logic" and really "set theory" is enough. Sure, the result will be more verbose, but do we care anymore now that the LLMs are writing so much of things? We should pivot to one where these two properties hold: 1. The bridge between the code and the proof is obvious 2. The proof is easily checkable by a human. That could mean more verbose, if you don't elide logical step or steps where the prover goes and looks for a theorem that satisfies the assertion. | ||||||||
| ▲ | jeremyjh an hour ago | parent | next [-] | |||||||
The article addresses this - there are two different models and they have different pros and cons - probably there is not a single model that is best for every use case. Lean - used alone - would be the intrinsic model. Lean, or another formal language, bridged to a programming language (like the Aeneas project with Rust https://lean-lang.org/use-cases/aeneas/) would be the extrinsic. I haven't gotten far enough into this to really speak knowledgeably about this, but my intuition suggests that the intrinsic model has some significant advantages - specifically it encourages/forces you to model all your invariants in a dependent type system in the first place, and then you can prove things about the interaction of those invariants in a higher abstraction layer that is continuously checked as the program evolves. A language without a dependent type system is significantly constrained in the invariants it can prove in its type system alone - perhaps there are properties you'd have to prove with (pure) unit tests to supplement the type system, and this further constrains design. | ||||||||
| ||||||||
| ▲ | nylonstrung an hour ago | parent | prev [-] | |||||||
My personal thesis and hope is that Lean's real value is being an extremely useful general purpose pure functional language a that, unlike Haskell etc, has a genuine "wedge" and superpower in the form of proof solving I think all the capability it has to verify software and improve correctness are realized far more fully and elegantly if the software itself is built with Lean. Ironically, much of the of software verification by proof it's known for can be rendered unnecessary IMO because for example typechecker itself can enforce correctness by construction "Come for the verification, stay for the type system and metaprogramming." At the very least the proof/verification usecase has resulted in hundreds of millions poured into Lean-centric startups like Harmonic and LLM post-training which gives it an advantage no other existing functional language has had or will ever have. | ||||||||