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

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

317 points by todsacerdoti 21 hours ago | blainehansen.me | 300 comments on HN

View full thread · View on Hacker News

Comment thread (3)

  1. I even made https://github.com/kbr-/kotlean so I could make Android apps in Lean.
    Replies (1)
    1. Neat. Actually... while I have you here... what do you make of https://lanyon.ai/?
      Replies (1)
      1. Nice find. I like it. I'm doing something similar for myself right now, actually. A compiled formal DSL for reasoning and so on (I call it "Cognitive Calculus" and I even have a compiler...)

        They still use a language model to propose ideas though, and I have a particularly strong opinion on language models (or, as I like calling them since 2 days ago -- "well-formatted shit predictors"): https://news.ycombinator.com/item?id=50659297

        Also, they are a business, so they'll probably want to sell you this stuff. I want to give it away for free (just give me a month).

        They also have this footnote at the end: ``` Of course, the question of what constitutes a “mistake” is highly context-sensitive. It is perhaps more accurate to say that it is mathematically impossible for Lanyon ever to commit a misformalization. Every implementation will always match the specification, and every proof will always match the implementation, 100% of the time. In this sense, Lanyon guarantees perfect syntactic correctness. The issue of semantic correctness (i.e. how to guarantee that the formal specification actually matches the user’s natural language intent) remains an open area of research for us, spanning psychology, linguistics, philosophy, and agent harness development. We hope to have more to say about this soon. ```

        for that, see Elenxis. Although Elenxis is still using a LLM as a module, and LLM can be misaligned, so it's not a complete solution. I do have some mathematical theory though for doing this well, and want to develop it further