package alba

  1. Overview
  2. Docs
Alba compiler

Install

Dune Dependency

Authors

Maintainers

Sources

0.4.2.tar.gz
sha256=203ee151ce793a977b2d3e66f8b3a0cd7a82cc7f15550c63d88cb30c71eb5f95
md5=64367c393f80ca784f88d07155da4fb0

doc/alba.core/Alba_core/Unifier/Make/argument-1-H/index.html

Parameter Make.H

include Gamma_algo.GAMMA
type t
val count : t -> int

Number of variables in the context.

val push_local : string -> Term.typ -> t -> t

push_local name typ gamma

Add the local variable with name and typ to the context.

Precondition

name <> ""
val type_of_literal : Term.Value.t -> t -> Term.typ
val type_of_variable : int -> t -> Term.typ

type_of_variable idx gamma

Return the type of the variable idx. idx is the De Bruijn index i.e. and index of 0 points to the last variable and an index of count gamma - 1 points to the first variable.

val definition_term : int -> t -> Term.t option

definition_term idx gamma

If the variable idx has a definition, then return it. Otherwise return None.

val context : t -> Gamma.t
val expand : Term.t -> t -> Term.t
val is_hole : int -> t -> bool
val value : int -> t -> Term.t option
val fill_hole0 : int -> Term.t -> bool -> t -> t
OCaml

Innovation. Community. Security.