Writing correct software is hard and math alone won’t help us (2016)(pron.github.io)
370 points by AriFordsham 17 days ago | 183 comments
tl;dr: Drawing on computability and complexity theory (halting problem, Rice's theorem, time hierarchy), the author argues that fully verifying arbitrary programs is fundamentally intractable—verification is essentially the hardest problem in computer science, with complexity at least O(|S|) in the state space. Restrictions like total languages, modularization, or symbolic representations don't escape these bounds; correctness doesn't decompose, and language abstractions that add succinctness typically add equivalent verification cost. Practical tools (model checkers, deductive proofs, abstract interpretation, type systems) only work by sacrificing generality, precision, or shifting the complexity burden onto humans.
HN Discussion:
  • ↑Defining 'correct' is itself problematic since real-world software deals with messy inputs and specifications
  • ↑Software is like contract law — inherently impossible to fully specify acceptable behavior
  • ↓The article misinterprets Rice's Theorem and Gödel; one-off proofs about specific programs remain possible
  • ↑CS should embrace empiricism rather than chasing formal mathematical foundations
  • ~Formal verification still has value but requires designing programs to be verifiable from the start