An unofficial, read-only Hacker News reader. Join the beta →

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

300 points by todsacerdoti 17 hours ago | blainehansen.me | 293 comments on HN

View full thread · View on Hacker News

Comment thread (5)

  1. Usability, strong verification guarantees, expressiveness

    You get to choose 2 out of 3

    Replies (3)
    1. In my experience theres a huge difference between proving existing code and proving code that was written with ease of reasonin in mind.

      Maybe if we humans dont bother with proofs at all this will become irrelevant, but my speculation is that programmers familiar with formal verification may become more valuable in the sense they can write verification friendly code better.

    2. Whenever a "2 out of 3" dilemma appears, it turns out that you need only 1 out of 3, and the other two can be both relaxed to 99% of the ideal.
    3. 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 (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.