Skip to main content

Module interpret

Module interpret 

Source
Expand description

Running a constructive proof.

A signature carrying a body can be answered without anyone implementing it: the body is the implementation, and this walks it. That makes every derived bridge runnable the moment it is derived, with no code generated and no language involved.

The language is total — no recursion, no unbounded loops, and a call graph the checker has already shown to be acyclic — so evaluation terminates. The depth limit here is a backstop for a body that reached this point without being checked, not something a well-formed body can hit.

Calls out to other signatures go back through the dispatcher rather than being resolved here, so a body that calls sort gets whichever proof of sort the current policy prefers. A body says what to compute; it does not decide who computes it.

Structs§

NoCalls
A world in which nothing can be called.

Traits§

Calls
How a body reaches other signatures.

Functions§

eval
Runs a body with its parameters bound.
eval_signature
Runs the body of a signature against positional arguments.

Type Aliases§

BoxFuture
A future that can be held in a trait object.
Scope
The names bound where an expression is being evaluated.