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 think what he likely meant was: its impossible to do formal verification of programs the way they are written and deployed.

    He meant wrong, nowadays you just ask an LLM to re-write with proofs and redeploy.

    > I remember tracing a problem related to a longer trace on one of the paths of the PCB... but for whatever reason the microcontroller could transmit the same signal on one or the other path

    It's not clear what the issue was there but there are two possibilities (1) a software bug - only the pin connected to the short path should've been used by the program - easily caught by formal verification. (2) Analog/board design problem - these are resolved by proper safety margins and their state space is quite small - AI can redo the hardware with proper guarantees too.

    > The way I see it, in order to get verifiability to actual programs, one would need to cover the state space of the entire system - algo, compiled binaries, operating system, hardware

    No need to be scared, all of these are easily handled separately.

    > and the weather on the other side of the planet for a good measure.

    Formal verification provides proofs for any weather, on any side of any planet in the galaxy. It can even design systems that are solar-weather and star-weather proofed... if you can afford to actually implement them. Let me stop here, I don't want to scare you even more with stories about what some stars, even distant ones, can do to our planet. Yeah, life's tough.