Hacker News new | ask | show | jobs
by aenis 1 day ago
I think what he likely meant was: its impossible to do formal verification of programs the way they are written and deployed.

- ignoring how programs are written, they are usually compiled and linked, which introduces states unknown to the original programmer,

- ignoring how they are compiled, they are executed in environments with variability, including temporal; I remember tracing a problem related to a longer trace on one of the paths of the PCB, and materially different outcomes depending on which trace the signal happen to travel on (it was a high-frequency P-I-D controller, but for whatever reason the microcontroller could transmit the same signal on one or the other path). The particular bug was traced with a oscilloscope, by a graybeard, not algebra.

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, and the weather on the other side of the planet for a good measure.

I am not an expert in the area, in any way - just a regular software dude. Appreciate all the responses in this thread!

2 comments

See my comment here - https://news.ycombinator.com/item?id=50666297

It depends upon what all parts of a "system" you want to encompass under "formal verification". There is nothing preventing you from verifying everything from hardware all the way to user-facing software or only certain layers in the chain.

As an analogy, the FIPS/Common Criteria security standards have multiple levels of certification going from simple signed binary blob to a complete hardware and software lockdown system.

You can do the exact same thing with formal verification of your system if needed. LLMs have made this possible if driven properly.

Which level do you mean? If you mean EALs, to my knowledge, even the highest level never meant to be verification of the implementation but verification of the design.
> 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.