The need for a formally verifiable mainstream programming language (opens external site)
View full thread · View on Hacker News
To get push notifications on iPhone or iPad, add Hack and Chat to your Home Screen: tap Share → Add to Home Screen, then open the installed app and enable push in Settings.
View full thread · View on Hacker News
Replies (8)
2. ????
3. Post Human Singularity or something
Replies (3)
We want to be confident we're not being duped.
It's like we skipped over the Laws of Robotics, but we're writing some sort of Mosaic 'moral' code for generative models.
verification against whose spec?
The sweet spot for many users is the first. Make sure that the application cannot crash. No array-out-of-bounds read/write, no memory issue on ANY input, formally proven at compile time.
This requires additional work in the program to annotate (in SPARK at leasts) and knowledge from the programmer, which meant that there was a barrier to entry.
Well, LLMs COMPLETELY remove this barrier to entry. You can write the logic and have the LLM add the contracts to get to the proof. This works in most cases.
And then, for truly critical code, you can look at functional correctness as a cherry on top of your cheesecake.
(1) security - If we want secure systems they have to be watertight. And AIs are good at hacking.
(2) reasoning ownership - The AI models not being open weight and their thinking not being published means you don't own the reasoning process. Formal modelling (of requirements and specification) and proving is a way to partially retake that ownership.
It has been there for over 50 years.
For example, look at specification languages such as Z, VDM and OBJ/OBJ3/Maude.
Or even slightly later Design By Contract languages, such as Eiffel or D, which are not formally verified, but at least encouraged splitting 'execution obligations' into contracts, checkpoints and loop invariants.