In cognitive science, rules are formalized guidelines or principles that dictate how certain tasks should be performed or how information is processed. These rules serve as frameworks that guide cognitive functions, influencing problem-solving, decision-making, and reasoning across various contexts.