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 exist in virtual worlds. The protagonist, Paul Durham, is a software engineer who becomes obsessed with creating a perfect digital replica of himself. As he delves deeper into the nature of consciousness and reality, the novel explores philosophical questions about identity, existence, and the potential for transcending human limitations.