If you read Bostrom's original paper it goes over this.
https://www.simulation-argument.com/simulation