Principles of modal and vector theory of formal intelligence systems