DEVELOPMENT EDITION · 769442725406
Orientation
On this page

Manual example projects

Copy a complete example directory when experimenting. Each first-proof project contains verada.toml, its package/module, and a main program. Paths in the project file are relative to that file, so a copied project remains usable.

Example Expected result
first-proof/vada/before, first-proof/varc/before, first-proof/vibe/before check succeeds; prove reports B4101
first-proof/vada/after, first-proof/varc/after, first-proof/vibe/after Proof succeeds; JIT and native execution print answer: 42
formal-vectors/vectors.vadb and vectors.va Proof succeeds; execution satisfies assertions and prints nothing

The before examples deliberately contain an unproved boundary case. Keep them in separate projects from the repaired versions; loading both into one project would define the same unit twice. Use the examples from the first proof lesson and vector guide.

Run python3 docs/manuals/authoring/validate.py --examples from the repository root for the maintained pilot checks. It copies projects to temporary directories, checks expected failures, proves repairs, compares JIT/native output, and tests supported translations. Generated caches and binaries stay out of the maintained examples.

Complete reference and application fixtures

Family Purpose and outcome
Shared reference Enumeration/modular/fixed-point rules, bounds, multidimensional arrays, delta aggregates and ownership.
Vada and Varc syntax Broader typed/generic/contract program with exact JIT/native output; a Varc example of pipeline stage order.
Vibe syntax Core program plus positive observations and expected rejections from the compatibility catalog.
Stockroom Complete three-syntax application, frame/result contracts, normal accepted/rejected requests and invalid-caller proof.
Verification repairs Missing loop invariant and missing callee postcondition, before/after in all three syntaxes.
Toolchain C integration, arguments, formatting/documentation/stubs, emit/build and other operational fixtures.
Library Representative clients of container, string, model, numeric and system families.
APL tour APL text in Vada, Varc and Vibe: proved, with JIT/native, GNAT and CPython output.
APL Workbench The vector transformation that the APL Workbench guide edits and runs; proved, with its command-line output.

The authoring validation guide explains each runner and its recorded scope. Before/after projects and defect probes stay separate; do not combine every source in this tree into one compilation project. A passing expected-rejection test means the specified diagnostic was produced, not that the rejected feature is available.