Simulation theory is the newest chapter of a very old question: how do we know what is real? Plato’s allegory of the cave asked it around 375 BC. Descartes asked it in 1641 with his evil demon, and the brain in a vat asked it again in the 20th century. Nick Bostrom brought it into the computer age in 2003.
Start here: Plato’s allegory of the cave and simulation theory · duality vs non-duality · Nick Bostrom’s simulation argument