On the theory of ambiguity