The Maths of the Metaverse