Maths of space