Towards a Mathematical Theory of Development