Module Subst.FO
include SPECIALIZED with type term = Term.t
val find_exn : t -> var Scoped.t -> term Scoped.tval get_var : t -> var Scoped.t -> term Scoped.t optionval deref : t -> term Scoped.t -> term Scoped.tval apply : ?shift_vars:int -> Renaming.t -> t -> term Scoped.t -> termApply the substitution to the given term/type.
- parameter renaming
used to desambiguate free variables from distinct scopes
val bind : t -> var Scoped.t -> term Scoped.t -> tAdd
v->tto the substitution. Both terms have a context.- raises InconsistentBinding
if
vis already bound in the same context, to another term.
val bind' : t -> Type.t HVar.t Scoped.t -> term Scoped.t -> tval apply_l : ?shift_vars:int -> Renaming.t -> t -> term list Scoped.t -> term listval of_list' : ?init:t -> (Type.t HVar.t Scoped.t * term Scoped.t) list -> tval map : (term -> term) -> t -> tval iter : (Type.t HVar.t Scoped.t -> term Scoped.t -> unit) -> t -> unitval filter : (Type.t HVar.t Scoped.t -> term Scoped.t -> bool) -> t -> tval compose : scope:int -> t -> t -> tTakes a substitution that might map a variable x to a term that containts loosely bound variables. It fixes the substitution so that all such variables are remaped to a fresh skolem