News for hackers. Stuff that matters.
Re:Make formal verification and provably correct software pr... by warkdarrior on Saturday May 28, 2022 @09:47PM (#31545502)
Both termination and verification go beyond NP completess, in that they are undecidable. Also, "verifying so[m]ething with... confidence... lower than 100%" is known as testing.
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).