logoalt Hacker News

Almondsetatyesterday at 6:55 AM3 repliesview on HN

Formal verification has nothing to do with the quality of the API.

Given the spec, formal verification can tell you if your implementation follows the spec. It cannot tell you if the spec if good


Replies

dhruv3006yesterday at 7:38 AM

Thats something I agree with.

I am right now working on an offline api client: https://voiden.md/. I wonder if this can be a feature.

estyesterday at 7:42 AM

> It cannot tell you if the spec if good

I beg to differ, if a spec is hard to verify, then it's a bad sign.

show 2 replies
jeffreygoestoyesterday at 7:07 AM

That is one problem of many solved, isn't that good?

That the spec solves the problem is called validation in my domain and treated explicitly with different methods.

We use formal validation to check for invariants, but also "it must return a value xor an error, but never just hang".