If you have not installed Rust yet, follow the official instructions.
Download the LLVM binary installer. Then create an environment variable named LLVM_OBJDUMP
and set it to point to llvm-objdump.exe
.
Run
sudo apt update
sudo apt install build-essential unzip pkg-config libssl-dev llvm
Obtain the binutils
package if you don't already have it. It comes bundled with xcode
, but you can also obtain it through an external source such as homebrew:
brew install binutils
Make sure that the llvm-objdump
binary is in your path, e.g. if installed via xcode
:
export PATH=$PATH:/Library/Developer/CommandLineTools/usr/bin/
Or via homebrew:
export PATH=$PATH:/usr/local/opt/binutils/bin/
The tools/verus
directory contains the Verus repository at tag release/rolling/0.2024.10.25.601e1e7
, which is guaranteed to be compatible with the rest of the development.
For VsCode users, you can build verus with the verus-analyzer:
cargo xtask bootstrap
otherwise, you can build it with:
cargo xtask bootstrap --no-vscode-extension
Then, run make
to build the common libraries and both verification targets.
Make simply runs:
cargo xtask compile --targets vstd_extra
cargo xtask compile --targets aster_common
cargo xtask verify --targets fvt10-pt-cursor-navigation
cargo xtask verify --targets fvt11-pt-cursor-guards
After the first build, you may directly build one of the specific targets
with make fvt10
or make fvt11
This repository contains two verification targets. fvt10-pt-cursor-navigation
verifies the behavior of the cursor methods push_level
, pop_level
, and move_forward
.
The specification for these functions are defined in src/page_table/cursor/model.rs
, along with
the ConcreteCursor
type that contains an abstract instance of a page table, represented as a tree,
as well as the path into that tree that the cursor currently points to, and the subtree found at the
end of the path. The functions themselves, and their verification, are found in src/page_table/cursor/mod.rs
.
Target fvt11-pt-guards
extends the previous target's specification with a system of locks. Take a look at
src/page_table/cursor/mod.rs
and note that the proofs are much more complex, requiring multiple assertions and lemmas.