package alba

  1. Overview
  2. Docs
Alba compiler

Install

Dune Dependency

Authors

Maintainers

Sources

0.4.1.tar.gz
sha256=439b1dce07c86e914d1ebf1712c5581418314b0c8d13594f27a698b1d25fe272
md5=5cf58d4ed4eacbe6f330e9d2378ef5c6

doc/alba.albalib/Albalib/Term/index.html

Module Albalib.TermSource

Sourceval bruijn_convert : int -> int -> int
Sourcemodule Value : sig ... end
Sourcemodule Sort : sig ... end
Sourcemodule Lambda_info : sig ... end
Sourcemodule Pi_info : sig ... end
Sourcemodule Application_info : sig ... end
Sourcetype t =
  1. | Sort of Sort.t
  2. | Variable of int
  3. | Typed of t * typ
  4. | Appl of t * t * Application_info.t
  5. | Lambda of typ * t * Lambda_info.t
  6. | Pi of typ * typ * Pi_info.t
  7. | Value of Value.t
Sourceand typ = t
Sourceand formal_argument = string * typ
Sourceand inductive
Sourcetype t_n = t * int
Sourcetype typ_n = typ * int
Sourceval proposition : t
Sourceval any : t
Sourceval any_uni : int -> t
Sourceval variable : int -> t
Sourceval application : t -> t -> t
Sourceval implicit_application : t -> t -> t
Sourceval binary : t -> t -> t -> t
Sourceval applications : t -> t list -> t
Sourceval lambda0 : string -> bool -> typ -> t -> t
Sourceval product0 : string -> bool -> typ -> typ -> typ
Sourceval lambda : string -> typ -> t -> t
Sourceval product : string -> typ -> typ -> t
Sourceval arrow : typ -> typ -> typ
Sourceval lambda_untyped : string -> typ -> t -> t
Sourceval product_untyped : string -> typ -> typ -> t
Sourceval lambda_in : formal_argument list -> t -> t
Sourceval product_in : formal_argument list -> t -> t
Sourceval char : int -> t

char code character value.

Sourceval string : string -> t

string str string value.

Sourceval number_values : string -> t list
Sourceval type_of_sort : Sort.t -> typ
Sourceval is_sort : typ -> bool
Sourceval pi_sort : typ -> typ -> typ
Sourceval map : (int -> int) -> t -> t

map f t

Map the free variables with f

Sourceval up_from : int -> int -> t -> t

up_from delta start t

Sourceval up : int -> t -> t

up delta t

Sourceval up1 : t -> t
Sourceval down_from : int -> int -> t -> t option

down_from delta start t

Sourceval down : int -> t -> t option

down delta t

Sourceval substitute0 : (int -> t) -> bool -> t -> t

substitute0 f beta_reduce t

Sourceval substitute : (int -> t) -> t -> t

substitute f term substitutes each free variable i in term by the term f i.

Sourceval substitute_with_beta : (int -> t) -> t -> t

substitute f term substitutes each free variable i in term by the term f i and do beta reduction in case that f i appears in a function position and is a function abstraction.

Sourceval apply : t -> t -> t
Sourceval apply_nargs : t -> int -> Application_info.t -> t

apply_nargs f n mode returns

f (Var (n-1)) ... (Var 0)

where all applications are done with mode mode.

Sourceval fold_free : (int -> 'a -> 'a) -> t -> 'a -> 'a
Sourceval to_index : int -> t -> t
Sourceval to_level : int -> t -> t
Sourceval has_variable : int -> t -> bool
Sourcemodule Monadic (M : Fmlib.Module_types.MONAD) : sig ... end

Monadic functions

Sourcemodule Inductive : sig ... end

Inductive types

OCaml

Innovation. Community. Security.