MHN
Add a comment on Hacker News →
2 of 111 comments
  1. Strongly agree with the author here. The future will belong to programming languages that natively embed theorem proofers into their type systems so LLMs can forego a lot of testing by just validating the implementations they write against the specs with formal proofs. Writing formal specs is probably the main skill a programmer in the future will need to get work done.

    Verus (https://github.com/verus-lang/verus) is a good start for the rust ecosystem, but it's essentially a standalone language today (with custom syntax and type system).

  2. Cool. Now we can write bugs in our theorem descriptions instead of source code.

    Seriously, please review Curry Howard Isomorphism if you’re getting pulled down this rabbit hole.

    Programs are proofs. Proofs are programs.

    So if you can formally describe the correct output for every input, you can have an LLM loop automatically fill in the gaps of how to get there. Congrats, that sounds at least as hard as writing the correct program in most cases.

    Don’t get me wrong, I do think there are useful tools combining formal methods and llms. Let’s just not get carried away.