Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I wanted to explore how I could use Quint with LemmaScript, so I worked through a bunch of case studies, and ended up creating a reusable LemmaScript-first methodology and satellite tool. I am excited about this approach, because it addresses a key question in using verified contracts: who checks the contracts? Of course, our answer so far has been that contracts are easier to inspect than implementations, and so we can review contracts with the guarantee that the implementation satisfies them.

And now, `lemmascript-quint` provides a more mechanical path to the answer. You can generate Quint from LemmaScript contracts, and check that those contracts actually support the system-level, temporal properties that you care about. You can even mutate clauses one by one to see which ones matter, and connect the LemmaScript/TypeScript implementation directly to Quint for model-based testing of outer shells like async loops that are (currently) beyond the reach of LemmaScript.

Across four case studies, we found that in addition to the LemmaScript function-level guarantees, the Quint system-level guarantees afford new assurances, in particular about the overall functioning of the app across time, with concurrent actions. We caught issues like weak contracts and real async races.

 help



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: