The Origin of Language: A Formal Theory of Representation