On this page
Verada.Footprints
Footprints: the cells a proof enclave's object owns, as a ghost set.
Read the family guide for how models and footprints are read in contracts. The complete declaration page retains exact signatures/contracts; the source specification is the implementation baseline.
Availability and ownership
For writing proof enclaves: an enclave type's full view keeps its footprint in a component of type Cells, which its operations maintain and its contracts state. The prover sees a set as an array from locations to Booleans. In the program a set takes no storage, so these functions are for contracts, assertions and the assignments that keep footprints, not for the program's decisions.
Import and instantiate
Place the declaration in a declarative part, with the actuals your program needs.
with Verada.Footprints;
package Instance_Name is new Verada.Footprints (Node_Ptr);import Verada.Footprints;
package Instance_Name = new Verada.Footprints<Node_Ptr>;
Vibe does not instantiate library generics; see library use across syntaxes. In Varc, keep each name's declared spelling and write & on arguments the call changes.
API 001
Generic formals (declaration) — The cells' type: an enclave's access type, whose values name its cells.
Declared interface:
generic
type Location is private;API 002
Cells (declaration) — A finite set of cells, the footprint an enclave object owns; it takes no storage in the program, and for all P of S ranges over its cells.
Ghost: for contracts and ghost code, and left out of the program.
API 003
Empty (declaration) — No cell.
Ghost: for contracts and ghost code, and left out of the program.
API 004
Contains (declaration) — Whether P is one of the cells.
Ghost: for contracts and ghost code, and left out of the program.
API 005
Add (declaration) — The cells with P.
Ghost: for contracts and ghost code, and left out of the program.
API 006
Remove (declaration) — The cells without P.
Ghost: for contracts and ghost code, and left out of the program.
API 007
Union (declaration) — The cells of Left or Right.
Ghost: for contracts and ghost code, and left out of the program.
API 008
"<=" (declaration) — Every cell of Left is in Right.
Ghost: for contracts and ghost code, and left out of the program.
API 009
Disjoint (declaration) — No cell is in both.
Ghost: for contracts and ghost code, and left out of the program.
API 010
First (declaration) — Iteration's start, for for all P of S (the cells are their own positions).
Ghost: for contracts and ghost code, and left out of the program.
API 011
Next (declaration) — Iteration's step.
Ghost: for contracts and ghost code, and left out of the program.
API 012
Element (declaration) — Iteration's element: the cell itself.
Ghost: for contracts and ghost code, and left out of the program.