logoalt Hacker News

lopatin • yesterday at 9:42 PM • 0 replies • view on HN

I've been toying with adding verifiable contracts to TypeScript + React and I've had a lot more luck with K Framework than Lean, Dafny, or TLA+ as backends.

They already have published formal specs for JavaScript among other main stream languages. You can combine that with this paper for formal semantics of React hooks: https://dl.acm.org/doi/10.1145/3763067?__cf_chl_tk=xOyr8JU2v...