So what if we make it rigorous? Let’s restate the problem this way: The judge tells the prisoner that he will be hanged on one of the weekdays next week. The prisoner is given one piece of paper and a pencil. There is something like a mail slot in the cell door such that the prisoner can slip the piece of paper through the slot, the paper will drop into a bin, and then is not retrievable by the prisoner.
The rules are this: The hangman will come to the prisoner’s door at exactly noon on the day of the hanging. If the mail bin contains the piece of paper that was given to the prisoner (the one-and-only original piece, let’s say somehow unmistakably identifiable, and completely intact, i.e. not torn into smaller pieces) and on that paper is written the current day of the week (written by the prisoner himself, of course), then the hanging will not take place and the prisoner will be freed.
In other words, if the prisoner can correctly predict the day of the hanging, he goes free, otherwise he gets hung.
So, for example, if the hangman shows up at noon on Wednesday and the bin has the piece of paper with “Wednesday” written on it, it is clear that the prisoner predicted that the hanging would be attempted on Wednesday, he was correct in that prediction, and therefore no “surprise” will take place.
On the other hand, if the hangman arrives at noon on Wednesday and finds the paper with “Tuesday” written on it, the prisoner has predicted incorrectly and therefore we can count Wednesday as a “surprise” and he gets hung. And, of course, anytime the hangman arrives and there is no paper at all, we declare that a “surprise” and the hanging goes ahead.
So, now, does that change anything?
The prisoner can still reason that if Thursday noon passes with no visit from the hangman, he can write “Friday” on the paper, put it in the slot, and be guaranteed to be set free at noon on Friday. Therefore, he can reason that it would be stupid of the judge to wait until Friday to send the hangman, and so Friday can be ruled out as a possible day of the hanging. And now with Friday ruled out, he can use the same logic that if he is alive on Wednesday after noon, the only possible day is Thursday, he can write “Thursday” on the paper, put it in the slot, and when the hangman arrives on Thursday, he’ll be set free. And so on, ruling out all the days.
So then when the hangman actually shows up on Wednesday and the bin is empty, the prisoner gets hanged.
I think njtt hit it on the head: The prisoner’s chain of logic begins with “If I’ve made it to Friday…”, which is only a valid assumption on Friday. He ruled out Friday as a possible day of hanging only by virtue of making it to Friday. Ruling out Thursday based on having ruled out Friday which was based on having made it to Friday, just isn’t a valid chain of logic.