Skip to content

Standard library

The package std ships with quivers: every module loader serves it first, so import std.data resolves in any module, package, or document. Each page below renders one module's interface, the names an importer sees, with the examples of its doc comments; the examples run as tests of the page.

Module Contents
std.data Lists, options, results, and finite maps and sets.
std.fn Functions as values: identity, constants, composition, and the combinators that build one function from others.
std.grammar.ccg Combinatory categorial grammar: its combinators as deduction signatures.
std.grammar.ccg.semantics Combinatory categorial grammar with meanings: the combinators of std.grammar.ccg over items that carry a meaning.
std.grammar.lambek The Lambek calculus over a chart: rules that are theorems of the associative Lambek calculus L, under the categorial interface of std.grammar.ccg.
std.semiring Semirings as theories, and the instances deductions run in.
std.syntax.lambda The simply typed lambda calculus with products and a monad.
std.syntax.typed_lambda Intrinsically typed terms of the simply typed lambda calculus. Term(g, t) has type t in context g, and Bound(g, t) selects a binder of type t in that context. Empty is the empty context. Extend(t, g) adds an innermost binder of type t.
std.syntax.typed_lambda.derive Generate intrinsically typed lambda terms over a local index sort.
std.syntax.typed_lambda.named Author closed intrinsically typed lambda terms with named binders. A declaration splice resolves binders to the typed term constructors declared by the caller. The generated declaration is checked normally.
std.syntax.types Simple types of std.syntax.lambda: their unification, and the typing judgment of the calculus.