News for hackers. Stuff that matters.
Re:Make formal verification and provably correct software pr... by mbrodersen on Sunday May 29, 2022 @10:12PM (#31554870)
Termination is undecidable in general but that is not a problem in practice. Proof assistants like Coq, LEAN etc. can automatically prove termination for most practical code. And if not, the developer has to prove termination by hand. Which is not hard in most cases I have encountered. And if you still can’t do it you simply add a “fuel” natural number counter that guarantees termination (exit when out of fuel).

There are no comments on this comment yet.