The Z3 SMT Solver


Easy mode for Windows/Linux:
The specific distribution of Linux doesn't actually matter.
Literally just do that and skip everything else.

1. Installation

We will install z3 using stow, so first follow the instructions here.

cd ~/local/src
git clone
cd z3
hash=$(git rev-parse --short HEAD)
./configure --prefix ~/local/stow/$pkg
cd build
make -j4
make install
cd ~/local/stow
stow $pkg

1.1. Editing

If you're using VIM, put this as the last line any file:

; vim: ft=lisp:lw+=define-fun,forall,exists:

Or do it properly by putting the following line in ~/.vim/filetype.vim:

autocmd BufRead,BufNewFile *.smt2 set ft=lisp lisp lw+=define-fun,forall,exists

2. Using It

Follow this interactive tutorial: