You are probably using version 4.3.0 for Linux or OSX. Version 4.3.0 has configuration problems on these platforms. If so, I suggest you download version 4.3.1 . Version 4.3.1 will contain both queries on Linux and OSX. In version 4.3.0, auto-tuning is enabled by default on Linux and OSX. Thus, Z3 will always use a general-purpose solver that is not complete for nonlinear arithmetic and does not support the power operator. When autoconfiguration is enabled, Z3 detects that these two problems are in a non-linear real arithmetic fragment, and switches to nlsat solver .
BTW, to manually enable automatic configuration on version 4.3.0, you can use the z3.set_option(auto_config=True) command.
source share