r/AskComputerScience • u/onareksum • Feb 25 '26
Soundness and Completeness of a Tool
Hello all,
I hope this post is relevant with the topics of interests of this subreddit. I got stuck on understanding what makes a tool that solves a combinatorial optimization problem sound/complete.
As far as I understood,
- completeness requires a tool to accept/prove all true things in that domain.
- soundness requires a tool to prove only true things in that domain.
Now, suppose that we are trying to solve a combinatorial optimization problem. Optimal solutions for this problem may or may not be have a property P. In addition, we know that at least one optimal solution have this property P. If we have a tool that finds all optimal solutions that have the property P and that does not find any suboptimal/invalid solution, can we say that this tool is sound but not complete. Can we say that this tool is complete under the restriction of the property P?
I am reading a paper that suggests a logical framework for a combinatorial optimization problem and they argue that this framework is complete. However, the framework reduces the search space to solutions that have the property P. That is where I got confused.
View all comments
Show parent comment
1
u/cbarrick Feb 25 '26 edited Feb 25 '26
Maybe an example is useful.
Consider the halting problem: given another program as input, return whether or not that program always halts.
Here is a trivially complete solution:
This will always return true when the given program halts on the given program input. But it may also return a false positive when the given program does not halt on the given input. (In fact, it returns true for all inputs.)
Here is a trivially sound solution:
This will always return true when the given program halts on the given program input, and will always return false when the given program does not halt on the given program input. But it may never return an answer for some inputs. (In fact, it never returns an answer for any input.)
What we usually care about are solutions that are both sound and complete. Famously, there is no sound complete solution for the halting problem.