Mathematical language, etc. It is neither natural science nor social science, but tool science. Early mathematical research belongs to the field of philosophy and the science of thinking, and the seeds of human knowledge belong to philosophy. All disciplines in the modern sense are independent disciplines specially established without philosophy, but they still belong to the science of thinking.
Well, the answer comes again. Mathematics is a tool science and a thinking science.