Rational expectations in microeconomic models