Unofficial Hacker News companion — get notified on comment replies, and more.

The need for a formally verifiable mainstream programming language (opens external site)

344 points by todsacerdoti 4 days ago | blainehansen.me | 325 comments on HN | Vote on HN (opens Hacker News) |

View full thread · View on Hacker News

Comment thread (1)

  1. 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.