The math of the soul