logoalt Hacker News

nylonstrung • today at 11:22 AM • 1 reply • view on HN

Lean has verification guarantees and I'd argue is the most expressive language ever made, except perhaps Racket

The question then is if it's usable, and I'd argue it isnt any less so than other FPs or systems languages


Replies

Dashadower • today at 3:02 PM

I'm not sure if you could say pure lean is expressive, especially if you restrict to portions you can actually verify/reason about. Because functions without proof of termination cannot be used in propositions and you're forced to define a measure if your recursive function doesn't have a syntactically decreasing argument.

Unless you're talking about reasoning about other languages deeply embedded in Lean, at that point we're not talking about Lean itself but about the model of that language stated in Lean.