Although Punishment is regulated by Evidence, yet it depends upon Law. Vyavahara (law) is really based upon Vedic precepts.
दण्डः प्रत्ययदृष्टोऽपि व्यवहारात्मकः स्मृतः। व्यवहारः स्मृतो यश्च स वेदविषयात्मकः॥