An abductive theory of legal issues