Logic and Perception