DEVELOPMENT EDITION · 769442725406
Toolchain Manual
On this page

Caches, interfaces and certificates

Verada keeps different artifacts for proof, compilation and execution. They have different keys and assurance meanings. A warm build is faster, but a cache hit is not an additional independent proof. Use clean-run evidence when reviewing a release.

Locations and ownership

Artifact Location Meaning / lifecycle
Proof answers Project .verada/proof-cache, .verada/summaries, .verada/fact-proofs, .verada/runs Proved conditions, failures with their counterexamples, undecided answers, loop-invariant suggestions; proved subprograms' summaries; proofs with the facts they used; kept to what recent runs used, at most 256 MiB each
Library interfaces Project .verada/lib/*.spec.bli, *.body.bli Serialized interface, source/dependency hashes, instances and proof counts
Native unit objects Project .verada/obj/*.o LLVM-module-content-keyed objects, including debug mode in key
Nonproject native objects XDG-selected Verada cache objects/ Unit objects when no project file is selected
Project C objects XDG-selected Verada cache c-*.o Keyed by C source path and contents
Embedded runtime objects XDG-selected Verada cache rt-<fingerprint>/ Runtime C/header sources and compiled objects
Proof certificates .verada/certs beside project; current-directory .verada/certs without a project Solver-rechecked hypothesis cores
Debug symbols <executable>.dSYM on macOS debug builds Debugger data generated by dsymutil

Native output -o paths and generated doc/translation/stub directories are user outputs, not disposable compiler caches. Format rewrites source files in place.

What is reused

A proved or failed answer is keyed by the condition's SMT text, the solver interface and the base resource limit, so it holds whatever solver later runs. An undecided answer is keyed also by the solvers' versions, the budget and the compiler's revision: a new solver, a larger budget or a new compiler asks again. A subprogram whose checks were all proved has a summary, keyed by everything its conditions come from and the compiler's revision; while that is unchanged its conditions are not generated again. --no-cache asks the prover to search again and suppresses .bli writes; it does not erase existing cache files.

.bli files record each unit's interface, freshness and proof counts. Verada still reads and checks the sources; a .bli file is not a way to distribute a library without its source.

Native objects are reused by generated module content. The runtime and C caches are keyed by their sources: switching C compilers, changing C headers or the compiler wrapper does not invalidate them. For those changes use a fresh cache root and, when relevant, remove project .verada/obj before comparing native results.

Certificates and version control

Certificates are deterministic text containing hashes of the hypotheses in an unsat core. Verada regenerates each condition and checks it with Z3 from the core alone. A missing core means a search; a rejected or orphaned one is reported (B8008) and the check proved by search. A certificate file proves nothing by its presence: only a successful recheck of its condition does.

Commit project configuration, source and reviewed certificates if your evidence policy uses them. Ignore proof caches, objects and .bli files; they are derived and version-sensitive. Keep compiler/solver identities in release records. Avoid committing unexplained cache files as substitutes for a proof log.

Clean and isolated runs

Close concurrent work using a cache before deleting it. Remove only known derived directories inside the intended project. Rather than clearing a shared user cache, select a temporary root:

scratch=$(mktemp -d)
XDG_CACHE_HOME="$scratch/cache" veradic prove --no-cache --project verada.toml
XDG_CACHE_HOME="$scratch/cache" veradic build --no-cache --project verada.toml -o "$scratch/app"

This bypasses persistent proof answers and isolates runtime/C caching, but existing project objects can still be reused. Delete or temporarily relocate that project's .verada/obj for a fully fresh native comparison. --no-cache does not disable certificate rechecking when certificates are separately enabled. Set certificates = false in a disposable project copy if the comparison must exclude both cached answers and saved cores.

A failed build can leave valid cache/interface evidence from completed earlier stages. Treat the process exit status and diagnostics as the result, not the presence of an output directory or an executable from an earlier run.