Rational Thoughts in Neural Codes