TitleAnti-Unification for Unranked Terms and Hedges
Publication TypeConference Paper
Year of Publication2011
AuthorsKutsia T, Levy J, Villaret M
EditorSchmidt-Schauss M
Conference NameProc. of the 22st Int. Conf. on Rewriting Techniques and Applications, RTA'11
Volume10
PublisherSchloss Dagstuhl
Conference LocationNovi Sad, Serbia
Pagination219-234
Date Published30/05/2011
KeywordsAnti-unification, unranked terms
Abstract

We study anti-unification for unranked terms and hedges that may contain term and hedge variables. The anti-unification problem of two hedges s1 and s2 is concerned with finding their generalization, a hedge q such that both s1 and s2 are instances of q under some substitutions. Hedge variables help to fill in gaps in generalizations, while term variables abstract single (sub)terms with different top function symbols. First, we design a complete and minimal algorithm to compute least general generalizations. Then, we improve the efficiency of the algorithm by restricting possible alternatives permitted in the generalizations. The restrictions are imposed with the help of a rigidity function that is a parameter in the improved algorithm and selects certain common subsequences from the hedges to be generalized. Finally, we indicate a possible application of the algorithm in software engineering.