Norms, Deviance, and Social Control: A Mathematical Elaboration of Concepts