A wonderful book about the general pattern is Smullyan's Diagonalization and Self-reference. I can't resist to make this answer self-referring.
Peter Arndt
- 12.3k
- 3
- 58
- 94