std.syntax.typed_lambda.derive¶
Generate intrinsically typed lambda terms over a local index sort.
The examples on this page run in this module, which opens std.syntax.typed_lambda.derive:
declare_terms (computation)¶
meta define declare_terms(base_types : SynDecl) : Seq[SynDecl] !{refusal}
Declare an index from the caller's primitive types, adding Arr,
Empty, and Extend. Generate Bound(g, t), Term(g, t), and the
three variable aliases V0(), V1(), and V2() over that index.