DEVELOPMENT EDITION · 769442725406
Verification Manual

Verada Verification Manual

The Verada owl perched on a leafy branch
On this page

Verification is the work of turning an intended property into a precise contract, establishing the facts each operation needs, and checking the evidence returned by the tools. This manual teaches that workflow for Verada's language and prover. It covers ordinary application proof and the boundaries that matter when using libraries, ownership, foreign code, devices, and concurrency. It is self-contained for a programmer new to proof; syntax placement and exact legality are defined in the Language Reference.

Reading paths

For a first successful proof, follow overflow diagnosis, then contracts, loop reasoning, and proof outcomes. For an existing project, start with adoption and review, consult the mode and trust chapters, and work through the chapters matching its data and interfaces.

Chapter What it enables you to do
Guarantees and modes Choose a policy and state exactly what a successful command establishes
Trust and evidence Identify assumptions, trusted dependencies, provenance and residual risks
Contracts and modular reasoning Specify operations, preserve abstraction, handle cases, dispatch and callbacks
Flow and state Establish initialization, effects, dependencies, abstract state and elaboration
Loops and termination Derive invariants, preserve frames and justify progress
Ghost models and quantifiers State mathematical properties without confusing models with runtime values
Ownership and exceptional boundaries Reason about moves, borrows, reclamation and exceptional exits
Numerics, pipelines and matrices Prove bounded computations and shape-sensitive iteration
Concurrency and external state Understand race, blocking, ceiling and asynchronous-read obligations
Diagnosing proof results Separate confirmed defects, weak specifications, unknowns and tool failures
Operating proof and retaining evidence Use budgets, workers, the proof cache, the editor's prover and certificates correctly
Adoption and review Move an application from exploratory checks to reviewed release evidence
Proof enclaves Prove shared, cyclic representations behind a fence, with a heap logic

The Toolchain Manual owns exact command options, output streams, configuration and installation. The Library Reference owns public API contracts and operation/resource limits. A generated signature is an input to proof, not evidence that its implementation has been verified.

The core reasoning cycle

  1. State the property in terms the caller can understand. Include required output behavior, not only input restrictions or absence of overflow.
  2. Check types, initialization, effects and ownership with veradic check.
  3. Run veradic prove on the complete project, or let the editor prove as you type. Read each result's qualification.
  4. Repair the program or its justified specification. For a loop, carry the needed relation in an invariant; for a call, expose it in a postcondition.
  5. Reprove the body and callers, execute representative tests, and review the assumptions.

Proof is modular. The body of a correct helper does not automatically supply its caller with every fact that body establishes. A loop's actual starting value does not automatically describe every abstract iteration considered by the solver. Those two boundaries explain many apparently surprising failures.

Maintained worked examples

The verification examples contain two complete repair families in Vada, Varc, and Vibe. The loop family is safe on execution but fails proof until an invariant connects the counter to iteration progress. The contract family has a correct increment body, but its client cannot prove the answer until the interface states the result. These are different from the overflow example, whose unrepaired interface admits a real error.

From the repository root, select one repaired project:

veradic prove --no-cache --project docs/manuals/examples/verification/loop/vibe/after/verada.toml
veradic run --no-cache --project docs/manuals/examples/verification/loop/vibe/after/verada.toml

The run prints count: 10. Replace vibe with vada or varc for the other presentations.