Criminal law is the branch of public law that defines crimes and provides for their punishment. There are three types of offenses under Philippine law: felonies punishable by the Revised Penal Code, offenses punishable by special penal laws, and infractions punishable by city ordinances. A crime is defined as an act committed or omitted in violation of public law. Criminal law has general characteristics such as applying to all persons in the Philippines regardless of status and only applying to acts committed within Philippine territory, with some exceptions. Theories of criminal law include the classical theory which focuses on retribution based on free will, and the positivist theory which sees crime as a social phenomenon and focuses on offender reformation.