Mathematical geology