Magical thinking: A representation result