An unofficial, read-only Hacker News reader.

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

343 points by todsacerdoti 2 days ago | blainehansen.me | 320 comments on HN

View full thread · View on Hacker News

Comment thread (1)

  1. I was going to add a comment about this possibility, but I didn't want to get carried away without knowing more.

    If you control the code for the systems you're talking about, then you can still use approaches like this if the communication between them involves cryptographically signed claims. So service 1 sends a request to service 2, with a signed claim that e.g. identifies the user as a human or agent, or whatever property you want to communicate - cert issued by an org's root, or whatever else has been validated by the source system. On the receiving end, you convert those claims back into their typed representations. This effectively allows static typing guarantees to be reliably extended across distinct services.

    But, it sounds like you might be describing something that this might not satisfy. In that case, I'd be interested to understand the details better - it seems to me that anything Lean can prove about a system ought to be encodable using techniques like these.

    > It lets us think in a structured way and explore scenarios without writing all the code. It found design flaws before any code existed, and it lets us prove that things must be possible, not only forbidden.

    Prototyping with code like the example I linked can provide these benefits as well, with much less effort imo. But, I may be missing something.