Foundations of Formal Sciences IV. The History of the Concept of Formal Sciences