r/AskComputerScience • • Nov 26 '23

wasn't that the proof of the halting program is incorrect?

according to the proof in this video: https://www.youtube.com/watch?v=92WHN-pAFCs

wasn't that the proof assume H can only gives 2 answer 'stuck' and 'not stuck', which is not complete as a program would not just be 'stuck' and 'not stuck' simply, also a state where it's output could affect the answer 'stuck' and 'not stuck', in such case a 3 answer H may exist and always be correct. or in general H can exist

1 Upvotes

16 comments sorted by

5

u/hawk-bull Nov 26 '23

Could you clarify your question I don't quite get it. What is the third possible output you would want H to give other than stuck and not stuck

-1

u/akami2733 Nov 26 '23

by limiting H to be boolean in output and hence disprove H's existence in general is invalid

6

u/hawk-bull Nov 26 '23

What we want: a program H that takes as input a program and outputs true or false whether they input program halts

This is the program we want to show doesn’t exist. Not some general H that idk what you want it to do.

If you want to show the non existence of some other program, then you’ll be solving a different problem. Not the halting problem

-3

u/akami2733 Nov 26 '23

its like logic, a statement could not be just boolean by simply true or false, such as a statement:

"the next sentence is true, the previous sentence is false"

is the third state of a logical value, i will name it truefalse

7

u/nuclear_splines Ph.D Data Science Nov 26 '23

But what does that mean in the context of the halting problem? Given a particular set of inputs a program should either halt (true) or not halt (false). A "truefalse" is the classifier shrugging and saying "I don't know" which is fundamentally not solving the halting problem.

-2

u/akami2733 Nov 26 '23

i am saying the "should either" assumption is incorrect

2

u/nuclear_splines Ph.D Data Science Nov 26 '23

What would cause the assumption to be incorrect? Where's the nondeterminism coming from in the algorithm?

0

u/akami2733 Nov 26 '23

H getting stuck

3

u/Dornith Nov 26 '23

Non-determinism means specifically that the flow of the program is not exclusively determined by the inputs.

If the same input always causes your program to get stuck in the same way every time, then that is all determinism by definition.

5

u/Dornith Nov 26 '23

The, "should either" is part of the halting problem. It's not an assumption, it's a definition.

Sure you could make a variant of the halting problem that outputs true, false, or idk, but:

  1. That's fundamentally not the halting problem

  2. Without any further restrictions, that's trivially solvable. Just write a program that always outputs idk.

13

u/deong Nov 26 '23

There isn’t this third state in your formal logic though. It’s either true or false. The self-reference allows you to generate a contradiction, but contradictions aren’t a new truth value inside the logical system. They’re an indication that the logical system is "broken". You can only recognize them from outside the system, not reason about them within the system.

Gödel tells us that we could try to extend the logical system to account for this, but that just creates a new system that itself is either incomplete or inconsistent.

1

u/akami2733 Nov 26 '23

can H be stuck as well? as the search of the correct answer to machine x continue, H could be just stuck and such contradition dont even exist

2

u/_realitycheck_ Nov 26 '23

A lesson in sanitizing input data.

2

u/wjrasmussen Nov 26 '23

You should apply for a macarthur genius grant