Telling a young child they are ‘smart’ seems like a good idea. New research shows how it could encourage them to cheat