Remix.run Logo
▲ mafuy 2 hours ago

To add a technical detail: This is true, iff you assume that a program (I prefer that term over algorithm) is static, i.e. does not receive any input. This is commonly assumed, which I think is why parent did not mention it.

Without the assumption, a WINE or NES64 emulator would be a trivial counterexample to the claim.

▲_flux 2 hours ago | parent | next [-]

What is this distinction? If you have a program that takes input, you can replace it with a static program that has an array that enumerates the input.

Or do you mean the case that the input is infinitely long? I'm not sure how to analyze the termination of such programs when paired with such input in the first place.

▲pluralmonad a minute ago | parent | next [-]

I read it as arbitrary input. So basically an incomplete program with part of itself externalized as user input.

▲ngruhn 14 minutes ago | parent | prev [-]

I think the point is that the input is not fixed. The proof would have to be over all inputs that the programs accept. E.g. you can have the "concrete" program that simulates a Turing machine. Proving that it halts over all inputs (all Turing machines), means you're back to the halting problem.

▲gf000 2 hours ago | parent | prev | next [-]

Well, the simpler counterexample would be simply the Universal Turing machine taking another Turing machine as input.

But even so, there are programs that take input and provably halting and those that don't take and not known whether it halts.

▲stemchar 2 hours ago | parent | prev [-]

The input is within a known range, no?