The contract theory of patents in perspective