Install Verus as described in the official documentation.
# Replace $verus with the path to the verus binary
git clone [email protected]:utaal/verified-nrkernel.git
$verus ./verified-nrkernel/page-table/main.rs --cfg feature=\"impl\" --rlimit 30
Verification may take around a minute. You should see output similar to this:
[...]
verification results:: 288 verified, 0 errors
The impl
feature flag can be omitted to check only the state machine modeling, not the
implementation.
The page table code and corresponding proofs are in the page-table
directory. We use the
convention that files and directories with _t
(e.g. definitions_t.rs
or spec_t
) need to be
trusted, while those with _u
do not need to be trusted. Trusted files contain for example
specifications and the axiomatized memory interface. Untrusted files include the implementation,
whose correctness is verified.
The directory structure is as follows:
main.rs
definitions_t.rs
-- Definitions used in trusted filesdefinitions_u.rs
-- Definitions used only in untrusted filesextra.rs
-- Helper lemmasimpl_u
-- Implementations and proofs. The interface to the page table is inl2_refinement.rs
(impl impl_spec::InterfaceSpec ..
) and the main implementation is inl2_impl.rs
(e.g.fn map_frame
).spec_t
-- Specifications. The high-level specification is inhlspec.rs
and the hardware model inhardware.rs
.