Library Reference

Verada embeds its predefined library in the compiler: 82 units, written in Vada, including namespace parents and the units the compiler uses to translate Vibe and tasking. The library holds the parts of Ada's standard packages that Verada programs use, plus Verada's own containers, models, lemmas and text types. Start with the selection table, then use the complete unit catalog for individual declarations and their exact contracts.
Choose a family
| Need | Start here | Important distinction |
|---|---|---|
| Fixed storage for sequences/maps/sets/lists | Bounded containers | Capacity and present-element bounds must both be proved |
| Growable lists/maps/sets/dictionaries | Unbounded containers | Limited owners, reclaimed when they end; finite lengths |
| Linked lists, graphs and hash maps proved whole | Proof-enclave containers | Clients reason about the functional model |
| Contract models rather than mutable storage | Functional models | Ghost values and extensional properties, not run-time containers |
| Shared/cyclic graph references | Arenas | Matching arena plus valid generation-stamped handle |
| A possibly absent result | Optionals | Prove presence before selecting Item |
| Fixed, bounded, owned or copyable text | Strings and text | Storage, copying and index domains differ |
| Latin-1 classification and character sets | Characters | Latin-1 tables; no locale or Unicode case mapping |
| Big integers/reals, elementary functions, lemmas | Numerics | Mathematical models, executable capacity and libm domains |
| Console/files, arguments, exceptions, program exit | I/O and process facilities | Explicit contracts and external state |
| C types, bit operations, addresses, conversions | Interfaces and system facilities | ABI and external-memory obligations |
| Clocks, delays, interrupts and suspension objects | Time and tasking | Scheduling and shutdown behaviour |
| Vibe library mappings | Syntax bridges | Python-looking syntax is a specific library mapping |
How to use an API entry
Each unit has a curated page with its purpose, how each syntax imports or instantiates it, its lifecycle and bounds, and numbered declaration explanations. A separate declaration page gives the exact source signatures and contracts. Public generic formals, record fields and nested packages are part of the interface. Names in a private part are implementation details, even where the declaration page shows them inside a nested generic block.
A Pre condition is a caller obligation; a Post condition is a normal-return guarantee under the declared assumptions. Global => null excludes package-global effects, not changes made through an in out argument. What a postcondition does not state, a client cannot assume: the prover may unfold an expression function's body, but a stable public API states the properties clients rely on.
Run a complete exercise
The library exercises cover strings and text copies, big integer and elementary-function bounds, time units, and Vibe list, dictionary and set operations. Each project has an exact expected output and can be proved, run in the JIT and built natively:
veradic prove --project docs/manuals/examples/library/strings/verada.toml
veradic run --project docs/manuals/examples/library/strings/verada.toml
veradic build --project docs/manuals/examples/library/strings/verada.toml -o library-strings
./library-stringsThe generic declaration exercise puts every unit import and each Vada and Varc generic instantiation in a complete declaration scope. Vibe uses its native collection forms, shown in the collection exercise.
What a client proof trusts
A proof of your program uses the library's contracts; it does not prove the library's bodies again. Library assurance says what that trust covers and how the library's own bodies are proved.