From the theory of mind to the construction of social reality