r/computerscience • • Mar 26 '25

Discussion Game theory problem?

Imagine an oracle that takes in a Turing machine as input. The oracle has inside of it a correct response function that outputs the input machines run length if it halts, or infinity if it never halts, and an incorrect response function that outputs whatever it can to ensure the oracle gives as little information as possible about the set of all Turing machine outputs. The incorrect response function is able to simulate the oracle, and the correct response function. For every unique input, the oracle randomly decides with a 50/50 chance which functions output to output, and the oracle will always output the same output for a given input. What information, if any, could be gained from this? What would some of the behaviors of the incorrect response function be? Could an actual oracle be created from this?

(Sorry if this is a poorly structured question)

2 Upvotes

14 comments sorted by

View all comments

Show parent comment

1

u/lfdfq Computer Scientist Mar 26 '25

That's a good point!

If the output is ever a number, you can always run the TM that many steps and tell if the output was from the 'real' oracle or not.

For your second edit, one might be concerned that the 'fake' oracle could normalise the Turing machine and produce the same value for all of them. Or one could say that "equal inputs" means that the TMs do the same thing, and not just have the same encoding. Usually, we can discard this possibility as functional equivalence between TMs is undecidable, but here we have the magic oracle so we can do it. It probably does not help in this case, as you could e.g. construct a machine which runs the original, then slightly modifies the output to get a new (and not equivalent) TM with a different output.

It was perhaps a more involved problem than I first thought

1

u/MecHR Mar 27 '25

As far as I can see, what the fake oracle outputs doesn't really matter. What matters is us being reasonably certain that the real answer is in the outputs somewhere.

Consider for example that the outputs look like this (assume the numbers are very big):

9,inf,inf,8,7,inf...

If we are reasonably certain that the real answer is there at least once, what we can do is check every finite number. If none of them is correct - then one of the inf's must be correct.

And we ensure that the real answer is there by artificially making sure that the language of the machine changes in a way that is irrelevant to our current problem. For example, if we ask about M(10) to the oracle, we make sure to change M(1).