LF.Kind
External LF kinds.
type t =
| Typ of {
location : Syncom.Location.t;
}
Typ { _ }
is the kind of simple types type
.
| Arrow of {
location : Syncom.Location.t;
domain : Typ.t;
range : t;
}
Arrow { domain; range; _ }
is the kind domain -> range
.
| Pi of {
location : Syncom.Location.t;
parameter_identifier : Syncom.Identifier.t Support.Option.t;
parameter_type : Typ.t Support.Option.t;
plicity : Syncom.Plicity.t;
body : t;
}
Pi { parameter_identifier = Option.Some "x"; parameter_type = Option.Some t; body; _ }
is the dependent product kind { x : t } body
. The variable "x"
ranges over LF terms.