|
|
|
|
|
by nyrikki
692 days ago
|
|
As you are talking about formal proofs, and not the scientific counterexamples modern programming uses: Proving a function is total in the general case is a NP total search problem. IIRC this is equivalent to NP with a co-NP oracle, or the second level on the PH hierarchy, aka expensive if even possible even in many small problems. Most of those tools work best if you structure your programs to be total, of which structural programing with only FOR or iteration count limited WHILE/recursion are some the most common methods. While just related to SAT, look at the tractable forms of Schaefer's dichotomy theorem is the most accessible lens I can think of. |
|
My intuition suggests this should be undecidable—could you elaborate on the difference between this and the halting problem?