Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Specification Language

Specifications describe conditions on function calls, program states, and data. They are written as Rust attributes and macro invocations.

Syntax
Specification :=
      FunctionContract
    | TypeInvariant
    | ContractStatement

Lexical Rules defines the notation and Rust syntax used throughout this reference. Logic Expressions defines the expressions from which specification conditions are formed.

The remaining chapters describe the places where these conditions apply:

Each construct is described by its syntax, semantics, examples, and implementation boundaries. The Grammar Index collects all productions.