Alpha equivalence checker for arbitrary lambda terms
7

Configure Feed

Select the types of activity you want to include in your feed.

ego / ocaml / lib / debruijn.mli
621 B 23 lines
1type t = 2 | Var of int 3 | Free of string 4 | Lam of t 5 | App of t * t 6 7module SSet : Set.S with type elt = string 8 9exception Unbound_index of int 10 11val free_variables : t -> SSet.t 12val free_variable_list : t -> string list 13val pretty : t -> string 14val shift : int -> int -> t -> t 15val subst : int -> t -> t -> t 16val substitute : int -> t -> t -> t 17val convert_from_named : Named.t -> t 18val convert_to_named : t -> Named.t 19val alpha_equivalent : t -> t -> bool 20val alpha_equivalent_counted : t -> t -> bool * int * int 21val normalise : t -> t 22val normalise_counted : t -> t * int * int 23val well_scoped : int -> t -> bool