如何在 Z3 中写出 2 次幂 n 即 2^n?

How to write 2 power n i.e. 2^n in Z3?

我正在使用这个link编译并查看结果(http://rise4fun.com/Z3)

我只想在 Z3 中写 2^n 说 2^100。

请大家帮忙写一下?

像这样:(^ 2 n),见example

请注意,Z3 通常会放弃非线性算法(如示例中的情况)。另见:How does Z3 handle non-linear integer arithmetic? and Z3 support for nonlinear arithmetic.