It’s important to note he is not being executed for a thought crime but a real crime that he know longer thinks of. If a tree falls in the forest it does make a sound even if nobody is there to hear it.
I have a tee shirt that says, “if a man speaks in the desert where no woman can hear, is he still wrong?”.