There's several definitions of what a punishment is, but one definition, the most popular, is: a punishment is a stimulus that reduces the immediately preceding behavior, such that it's less likely to occur in the future.
Hay varias definiciones de lo que es un castigo pero una definición, la más popular es: Un castigo es un estímulo que reduce la conducta de manera que sea menos probable que ocurra en el futuro.