You are not logged in. Your edit will be placed in a queue until it is peer reviewed.
We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.
Required fields*
- 1$\begingroup$ Thanks for your time. Let me argue. If f doesn't halt, the code in the answer also violates the spec because the spec says that outputs 42, and an algorithm that doesn't halt doesn't output anything. The partial correctness detector could return false and it would be right for that code, because whether f halts or not, if your code halted it would return 17 which is different than 42 and therefore would violate the spec. So the answer doesn't prove that partial correctness is not decidable. Does that make sense? Regards. $\endgroup$Otakar Molnár López– Otakar Molnár López2024-11-23 22:34:44 +00:00Commented Nov 23, 2024 at 22:34
- $\begingroup$ I rephrased my question a little to avoid ambiguities in its interpretation. $\endgroup$Otakar Molnár López– Otakar Molnár López2024-11-23 22:41:35 +00:00Commented Nov 23, 2024 at 22:41
- 6$\begingroup$ @OtakarMolnárLópez, I think you have a misunderstanding. I believe my answer is correct. I wonder if you might be forgetting that you asked about partial correctness. Code that never halts is partially correct, because the definition of partial correctness says "if the code halts, then ..." and that is vacuously true if the code doesn't halt. I've revised my answer to try to make it clearer. $\endgroup$D.W.– D.W. ♦2024-11-24 00:57:13 +00:00Commented Nov 24, 2024 at 0:57
- $\begingroup$ Thanks. That makes sense and helps me refine what I am looking for. Maybe what I am looking for is more like a relaxed halting problem solver that returns true (it halts) assuming some mathematical statements as true. For example, given a program that searches for a number that violates the Goldbach's Conjecture, prove that the program does halt and it finds a number violating the conjecture assuming the conjecture is false. But maybe those assumptions should be part of the input, i.e., given in a case by case basis. Anyway. Thanks! @D.W. $\endgroup$Otakar Molnár López– Otakar Molnár López2024-11-25 16:16:33 +00:00Commented Nov 25, 2024 at 16:16
- $\begingroup$ @OtakarMolnárLópez, Got it. I have a suspicion that maybe the answer to that might depend on the particular conjecture and/or algorithm used by the solver. $\endgroup$D.W.– D.W. ♦2024-11-25 19:09:50 +00:00Commented Nov 25, 2024 at 19:09
| Show 1 more comment
How to Edit
- Correct minor typos or mistakes
- Clarify meaning without changing it
- Add related resources or links
- Always respect the author’s intent
- Don’t use edits to reply to the author
How to Format
- create code fences with backticks ` or tildes ~ ```
like so
``` - add language identifier to highlight code ```python
def function(foo):
print(foo)
``` - put returns between paragraphs
- for linebreak add 2 spaces at end
- _italic_ or **bold**
- indent code by 4 spaces
- backtick escapes
`like _so_` - quote by placing > at start of line
- to make links (use https whenever possible) <https://example.com>[example](https://example.com)<a href="https://example.com">example</a>
- MathJax equations
$\sin^2 \theta$
How to Tag
A tag is a keyword or label that categorizes your question with other, similar questions. Choose one or more (up to 5) tags that will help answerers to find and interpret your question.
- complete the sentence: my question is about...
- use tags that describe things or concepts that are essential, not incidental to your question
- favor using existing popular tags
- read the descriptions that appear below the tag
If your question is primarily about a topic for which you can't find a tag:
- combine multiple words into single-words with hyphens (e.g. complexity-theory), up to a maximum of 35 characters
- creating new tags is a privilege; if you can't yet create a tag you need, then post this question without it, then ask the community to create it for you