Skip to content
Documentation out of dateLearn more

Syntax (Object logic)

The syntax of an object logic is commonly encoded as an LF type family of kind type.

For example, if the language of our object logic is the natural numbers, its syntax would be declared in the following way.

% declare a type family of kind "type" for natural numbers.
%sort nat %.
% inhabit the nat with the appropriate constructors.
%term nat/z nat %.
%term nat/s %pi nat %-> nat %.