I think it's quite safe to say philosophy has never contributed anything whatsoever to any kind of math, science, or engineering. Philosophy is all about helping mankind understand how to think about thought itself. Also I wouldn't call psychology a science either. Until mankind has a clue what consciousness actually is, there will be an impenetrable firewall between philosophy and all sciences.