Interesting thought. Reminds me of the story of the Greek story, "Antigone" (whether to uphold the laws of man or the laws of god/morality). Personally, I believe, in the grand scheme of things, that justice and laws were created to keep a society from falling into disorder. Imagine if "street justice" was the way, or we live in a world were its "an eye for an eye". It would be chaos at a subjective level. Yes, the people's adherence to the law is strengthened by the law's effectiveness. And yes, we ought to strive to have effective laws in order for society reasonably follow. As you pointed out, "criminal" laws should have in balance: retribution, deterrence, rehabilitation. However, have you considered the history behind these laws and how it is that the US nation, or its states, has gotten to this point? These laws aren't enacted by one person, nor in a vacuum. Everytime a law is enacted or created, it has been vetted and challenged and gone through a series of procedures and several different courtrooms. Also with punishment, the system is not perfect, but at the end of the day, the people have the right to have their trial by a pool of jury of their peers, and there is also a process when that is determined. Also, the justice system, at least, leaves room for methods and ways to improve upon it. Honestly, this is also what keeps AI from replacing the criminal system. AI can only capture the word of the law, but will never understand the essence of the law. AI cannot distinguish facts, it only understands keywords, and due to that its limited by what it's given or inputted, whereas the human mind does not. Human mind can learn when a law is no longer effective, they can challenge it, question it, and change it. AI will continue using whatever parameters that was set in its conception, unless someone does an update. I guess ultimately, every year we have new people learning and entering the legal field who are keeping things moving and changing things. It makes law and the concept of justice a breathing entity, which is kind of beautiful humane process.