Z3 is a theorem prover and SMT solver from Microsoft Research with bindings for many programming languages.
At a Glance
Z3 theorem prover licensed under the MIT license; self-hosted, with source and pre-built binaries available.
Engagement
Available On
Alternatives
Listed Dec 2026
About Z3
Z3 is a theorem prover from Microsoft Research, developed in the open on GitHub under the Z3Prover organization and licensed under the MIT license according to the README. It accepts SMT-LIB2 input and exposes native APIs for several languages. Pre-built binaries for stable and nightly releases are published on the releases page.
What It Is
Z3 is a satisfiability modulo theories (SMT) solver and theorem prover, written in C++. It is meant to be embedded in tools or used directly, with SMT-LIB2 as the default input format. A command-line z3 executable is produced by the build, and programs can drive the solver through the language APIs.
Language Bindings and Interfaces
The README documents APIs for C, C++, .NET (NuGet package), Java, Go, OCaml, Python (pip install z3-solver), and Julia (via Z3.jl). A WebAssembly build with TypeScript typings is published on npm as z3-solver. It also links Rust and Smalltalk (Pharo and Smalltalk/X) interfaces. The Axiom Profiler from ETH Zurich is listed as a power tool.
Building and Installing
CMake is described as the preferred and most fully featured build system, and vcpkg and Bazel are also supported. Z3 uses C++20, requires Python to build, and has few dependencies; GMP is optional because Z3 includes its own multi-precision arithmetic. Language bindings are enabled through CMake options such as Z3_BUILD_JAVA_BINDINGS. MSVC builds enable Control Flow Guard and ASLR by default.
Project Practices
The repository runs CI for Windows, WASM, Android, and cross builds, along with determinism and memory-safety checks. The maintainers ask that fuzz bug reports include diagnostics, a fix, and a test, and say that reports consisting only of a repro may be closed.
Collections
Popular collections
- Find the Ways Your AI App Can Fail Before Launch
Collection by @samirhaddad
- Give Your AI Agent the Meaning Behind Your Database
Collection by @danielokafor
- See What Your Agent Is Doing
Collection by @evtuff
- Black Friday 2026: AI APIs and Creative Tools
Collection by @priyashah
Add Z3 to one of your collections.
Community Discussions
Be the first to start a conversation about Z3
Share your experience with Z3, ask questions, or help others learn from your insights.
Pricing
Open Source
Z3 theorem prover licensed under the MIT license; self-hosted, with source and pre-built binaries available.
- MIT license
- Pre-built binaries for stable and nightly releases
- Build with CMake, vcpkg, or Bazel
- Bindings for several programming languages
- Windows binary distributions include C++ runtime redistributables under separate Microsoft license terms
Capabilities
Key Features
- SMT-LIB2 input format
- Theorem proving and SMT solving
- Bindings for C, C++, .NET, Java, Go, OCaml, Python, Julia, JavaScript/TypeScript
- WebAssembly build published on npm
- Build with CMake, vcpkg, or Bazel
- Pre-built stable and nightly binaries
- Self-contained multi-precision arithmetic with optional GMP
