package logtk
Module InnerTerm.DB
val closed : t -> boolcheck whether the term is closed (all DB vars are bound within the term). If this returns true then the term doesn't depend on its environment.
val contains : t -> int -> boolDoes t contains the De Bruijn variable of index n?
val unbound : t -> int listReturn a list of all unbound DB indices in a term
unshift n t unshifts the term t's bound variables by n. In other words it decrements indices of all free De Bruijn variables inside by n. Variables bound within t are left untouched.
replace t ~sub replaces sub by a fresh De Bruijn index in t. Shifts other De Bruijn indices by 1
N-ary version of replace Shifts other De Bruijn indices by length t
db_from_var t ~var replace var by a De Bruijn symbol in t. Same as replace.