Permutation City is a science fiction novel written by Greg Egan. The story takes place in a future where people can create digital copies of themselves and live in virtual worlds. The protagonist, Paul Durham, is a software engineer who becomes obsessed with creating a perfect digital replica of himself. Permutation City explores philosophical questions about identity, consciousness, and the nature of reality.