The Rules of Judicial Reasoning