DEVELOPMENT EDITION · 769442725406
Toolchain Manual
On this page

Projects and configuration

A verada.toml selects source directories, project C sources and proof settings. It is not a dependency-package manifest or a general-purpose build-script language. Verada finds units in selected directories and its embedded library; no package download or lockfile mechanism is declared by this project format.

Complete configuration

[project]
source-dirs = ["src", "support"]
c-sources = ["c/support.c"]

[proof]
budget = "standard"
certificates = true

[proof.budget-overrides]
"Geometry.Area" = "thorough"
Field Type / default Meaning
project.source-dirs Array of strings; ["."] Nonrecursive directories for initial project sources and required units
project.c-sources Array of strings; [] C translation units compiled for native linking or JIT loading
proof.budget String; quick Default proof effort: quick, standard, thorough, heavy
proof.certificates Boolean; false when omitted Read/write solver-rechecked cores under .verada/certs
proof.budget-overrides.<subprogram> Map of qualified names to budget strings; empty Per-subprogram effort; matching is case-folded
proof.solver-memory Integer MB above 0; 4096 Memory each solver process may use
proof.query-ceiling Integer MB above 0; 16 Largest query given to a solver; a larger one is reported as a defect of the VC generator

These are all the fields. Wrong types and malformed TOML produce B7006; other keys are ignored, so check the spelling of a field that seems to have no effect. There is no project setting for output name, main unit, optimizer, solver path, C flags or include/library search paths.

--proof-budget replaces the default budget, then applicable per-subprogram overrides still apply. --certificates enables certificates in addition to a project true value; there is no CLI switch to turn a project true value off. --solver-memory and --query-ceiling replace the project's values. Project proof settings are validated even by check.

Path bases and discovery

veradic check --project examples/app/verada.toml
veradic prove --project examples/app/verada.toml examples/app/src/main.vadb

Project directory fields are relative to the project file. Explicit filenames and -o output paths are relative to the shell's current directory. --project does not change that current directory, and it does not set the working directory of a running program.

Without --project, compile commands look for verada.toml in the current directory only. They do not search ancestors. With explicit inputs, those are the initial roots and Verada loads the units they depend on, specifications and bodies. Without inputs, Verada enumerates supported extensions directly inside every source directory. Nested directories require explicit entries or filenames. Missing/empty directories can lead to “nothing to check”; they are not recursively searched.

Unit and file names

Vada package Ledger.Store uses ledger-store.vads and ledger-store.vadb. A corresponding Varc package is conventionally ledger-store.va. Vibe modules use .vb and derive their package/module identity from their filenames and front-end lowering; use the supplied Vibe examples when converting a package layout. File extensions select syntax, with unknown extensions falling back to Vada rather than content detection.

Unit lookup considers explicit-input directories, project source directories, then predefined units. It loads specifications, parent requirements, generic bodies and separate subunits where required, and orders loaded units by dependency. Circular dependencies, mismatched unit names, missing completions and duplicate units have numbered diagnostics. Avoid keeping original and translated files for the same units together in one source directory.

A mixed project can import Vada, Varc and Vibe units through the common language model. Case, visibility, parameter modes and generic identity still require the syntax-specific rules. Translation is not a substitute for checking that boundary.

Entry point and elaboration

Executable builds require a library-level parameterless procedure. The main procedure is the last such library-level subprogram body in dependency order; there is no --main selector. Keep one unambiguous main body per executable project. check and prove can analyze library units without producing an executable. A program that has no runnable entry may pass those commands and fail build/run.

Library initialization executes in dependency order before main; tasks activate after library elaboration. The runtime waits for library tasks after main returns, then finalizes output. A project's c-sources are not executed or validated by check/prove. Their contracts are assumed by callers; linking and native/JIT tests are separate obligations.

Working with several executables

Create distinct project files with separate source directories containing each main, sharing library directories. Explicit input roots can also select an application closure, but a source directory containing multiple library-level subprogram bodies can still introduce ambiguity. Give each build an explicit output path. Proof and object metadata live beside the selected project file in .verada; see artifact lifecycles.