logoalt Hacker News

sterlind • yesterday at 4:58 PM • 1 reply • view on HN

honestly LLMs could probably write drivers in CompCert C or some other formally verified dialect. having AI discharge proof obligations seems like a terrific use for all this newly-developed mathematical process.

you could have the driver code prove it implements a spec, that there's no UB, that hardware invariants are maintained, that routines take a fixed time to execute.

the formal driver spec must still be written by sober, well-caffeinated humans of course.


Replies

speed_spread • yesterday at 5:15 PM

That's also assuming the device is fully documented and that hardware behaves exactly as documented.

➕ show 1 reply