Module Rewrite.Term
Rewriting on Terms
module Rule : sig ... endmodule Set : sig ... endtype rule_set= Set.t
module Rule_inst_set : sig ... endSet of rules with their instantiation
val normalize_term : ?max_steps:int -> term -> term * Rule_inst_set.tnormalize tcomputes the normal form oftw.r.t the set of rewrite rules stored in IDs. Returns the new term and the set of rules that were used- parameter max_steps
number of steps after which we stop
val normalize_term_fst : ?max_steps:int -> term -> termSame as
normalize_termbut ignores the set of rules
val narrow_term : ?subst:Unif_subst.t -> scope_rules:Scoped.scope -> term Scoped.t -> (rule * Unif_subst.t) Iter.tnarrow_term ~scope_rule tfinds the set of rules(l --> r)in IDs and substitutionssigmasuch thatsigma(l) = sigma(t)- parameter scope_rules
used for rules (LEFT)