For example, I want to set a symbol r to be rational, or real, but without specifying a value.<div>I know one can use info(info_flags::real) to determine if an object is real, but I want to do the opposite.</div><div>I found a type &#39;realsymbol&#39; to do this, but I want many other scopes such as rational, prime, positive integer, pure imaginary, etc.</div>
<div>Is there any solution?</div>