Title | Anti-unification for Unranked Terms and Hedges |

Publication Type | Journal Article |

Year of Publication | 2014 |

Authors | Kutsia T [1], Levy J [2], Villaret M [3] |

Journal | Journal of Automated Reasoning |

Volume | 52 |

Pagination | 155-190 |

Date Published | 04/2014 |

Abstract | We study anti-unification for unranked terms and hedges that may contain term and hedge variables. The anti-unification problem of two hedges s̃1 and s̃2 is concerned with finding their generalization, a hedge q̃ such that both s̃1 and s̃2 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, which is a parameter in the improved algorithm and selects certain common subsequences from the hedges to be generalized. The obtained rigid anti-unif ication algorithm is further made more precise by permitting combination of hedge and term variables in generalizations. Finally, we indicate a possible application of the algorithm in software engineering. |

DOI | 10.1007/s10817-013-9285-6 [4] |