Programmer Guide

Learn Verada by writing programs whose interfaces say what they accept, what they change and what they guarantee, and then letting Verada prove that the code keeps those promises. You can follow the whole course in Vada, Varc or Vibe. You need ordinary programming experience; you do not need to know Ada or formal proof.
Choose a syntax
Verada has one language and three syntaxes. Vada is Ada's own syntax, with a specification (.vads) and a body (.vadb) for each package. Varc is a C-family syntax with fn declarations, in .va files. Vibe is typed Python, in .vb modules. All three are checked, proved and compiled by the same compiler, veradic.
| Your starting point | Begin with | Then use |
|---|---|---|
| New to Verada and proof | Getting started, then your first proof | The course below |
| Ada experience | The first proof in Vada, then projects and APIs | Vada reference |
| C, C++ or Rust experience | The first proof in Varc, then everyday programming | Varc reference, ownership |
| Python experience | The first proof in Vibe, then everyday programming and values and resources | Vibe reference |
| An existing project to maintain | Recipes and migration | The reference pages each recipe links |
Pick one syntax and use its project in every lesson. The other columns show the same idea in the other syntaxes; you never need them to follow the course.
The course
- Getting started: run a finished project and learn what each command tells you.
- Write and prove a bounded increment: see a real overflow found by the prover, repair the contract, and build a native program.
- Everyday programming: types and bounds, conditions, loops, records, arrays, strings and collections.
- Projects and public APIs: packages and modules, visibility, contracts, generics and mixed-syntax projects.
- Values, ownership and errors: copying, moving, borrowing, cleanup, and expected failures.
- Reasoning about a program: useful contracts, loop invariants, termination, models, and reading a failed proof.
- Arrays, pipelines and numbers: bounds, reductions, filters, matrices and floating point.
- Tasks, devices and C: what changes when a program shares state or calls code Verada does not prove.
- The stockroom application: a complete small program with exact update and frame contracts, in all three syntaxes.
- Recipes and migration: daily tasks, continuous integration, and bringing Ada or Python code into Verada.
- Exercises and solutions: change the programs on purpose, predict the result, and check it.
The Language Reference gives the exact rules, the Verification Manual goes deeper into specification and proof, and the Toolchain Manual, Library Reference and Diagnostics Reference are for looking things up.
Projects you can run
| Project | Vada | Varc | Vibe |
|---|---|---|---|
| First proof, before and after the repair | Project | Project | Project |
| Types, bounds and arithmetic | Project | Project | Project |
| Stockroom application | Project | Project | Project |
Each is a complete project you can copy out and run. More programs are listed with the example projects.
What you will be able to do
By the end you can choose types that describe valid data, tell an expected application failure from an invalid call, write contracts that callers can use, and read a failed proof without mistaking every counterexample for a real run. You can build a native executable and name what its proof relies on: imported C code, the library's contracts and the compiler itself.
A proof shows that the program meets the properties written in it. It cannot show that you wrote down the right requirements, that foreign code or hardware behaves as declared, or that memory never runs out. Reviewing the specification and testing the program still matter.