一键导入
Install the Creusot Rust verification tool
npx skills add https://github.com/AI-native-Systems-Research/ai-native-storage-certus --skill tools-creusot-install复制此命令并粘贴到 Claude Code 中以安装该技能
Install the Creusot Rust verification tool
npx skills add https://github.com/AI-native-Systems-Research/ai-native-storage-certus --skill tools-creusot-install复制此命令并粘贴到 Claude Code 中以安装该技能
| name | tools-creusot-install |
| description | Install the Creusot Rust verification tool |
This skill should not need sudo privileges.
opam init)If any prerequisite is missing, inform the user and stop.
Install z3-solver via pip if not already present:
pip install z3-solver
Clone the Creusot repo into tools/creusot/creusot (if not already cloned):
git clone https://github.com/creusot-rs/creusot tools/creusot/creusot
Run the install script with --external z3 (uses the pip-installed z3):
cd tools/creusot/creusot && ./INSTALL --external z3
This installs cargo-creusot, creusot-rustc, Why3, why3find, Alt-Ergo, CVC4, and CVC5.
Fix why3find package resolution (required for proof discharge):
mkdir -p ~/.local/share/creusot/_opam/lib/why3find/packages
ln -sf ~/.local/share/creusot/share/why3find/packages/creusot \
~/.local/share/creusot/_opam/lib/why3find/packages/creusot
Add Creusot bin path to ~/.bash_profile:
export PATH="$HOME/.local/share/creusot/bin:$PATH"
Verify installation using the bundled test example:
cargo creusot version — should show version info for all componentscd tools/creusot/creusot-test-example
cargo clean
cargo creusot
Proved (4 files) ✔cargo clean is required before the first cargo creusot run if cargo build
was previously executed (stale artifacts block the Creusot translation pass)--external z3 flag tells Creusot to use the system z3 rather than downloading its own.tools-creusot-coq-install.Add Coq 8.20 as an additional prover to an existing Creusot installation, for verification conditions that SMT solvers cannot discharge
Synchronize Spin/Promela models with current source code and re-verify
Prepare an existing Cargo project to use Creusot formal verification
Create a new Spin/Promela formal verification model for a system property
Measure system performance of this platform using
Create a new version of a component