Seol mar théacs é seo: The structure of economics: a mathematical analysis