Anti-unification for Unranked Terms and Hedges

被引:0
|
作者
Temur Kutsia
Jordi Levy
Mateu Villaret
机构
[1] Johannes Kepler University,Research Institute for Symbolic Computation (RISC)
[2] Artificial Intelligence Research Institute (IIIA),Departament d’Informàtica i Matemàtica Aplicada (IMA)
[3] Spanish Council for Scientific Research (CSIC),undefined
[4] Universitat de Girona (UdG),undefined
来源
关键词
Anti-unification; Generalization; Unranked terms; Hedges; Software clones;
D O I
暂无
中图分类号
学科分类号
摘要
We study anti-unification for unranked terms and hedges that may contain term and hedge variables. The anti-unification problem of two hedges \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}${\tilde{s}}_1$\end{document} and \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}${\tilde{s}}_2$\end{document} is concerned with finding their generalization, a hedge \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}${\tilde{q}}$\end{document} such that both \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}${\tilde{s}}_1$\end{document} and \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}${\tilde{s}}_2$\end{document} are instances of \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}${\tilde{q}}$\end{document} 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-unification 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.
引用
收藏
页码:155 / 190
页数:35
相关论文
共 50 条
  • [21] Higher-Order Pattern Anti-Unification in Linear Time
    Baumgartner, Alexander
    Kutsia, Temur
    Levy, Jordi
    Villaret, Mateu
    JOURNAL OF AUTOMATED REASONING, 2017, 58 (02) : 293 - 310
  • [22] Higher-Order Pattern Anti-Unification in Linear Time
    Alexander Baumgartner
    Temur Kutsia
    Jordi Levy
    Mateu Villaret
    Journal of Automated Reasoning, 2017, 58 : 293 - 310
  • [23] An efficient algorithm for computing kernel function defined with anti-unification
    Doi, Koichiro
    Yamashita, Tetsuya
    Yamamoto, Akihiro
    INDUCTIVE LOGIC PROGRAMMING, 2007, 4455 : 139 - +
  • [24] Restricted higher-order anti-unification for analogy making
    Krumnack, Ulf
    Schwering, Angela
    Gust, Helmar
    Kiffinberger, Kai-Uwe
    AI 2007: ADVANCES IN ARTIFICIAL INTELLIGENCE, PROCEEDINGS, 2007, 4830 : 273 - 282
  • [25] One or Nothing: Anti-unification over the Simply-Typed Lambda Calculus
    Cerna, David M.
    Buran, Michal
    ACM TRANSACTIONS ON COMPUTATIONAL LOGIC, 2024, 25 (03)
  • [26] babble: Learning Better Abstractions with E-Graphs and Anti-unification
    Cao, David
    Kunkel, Rose
    Nandi, Chandrakana
    Willsey, Max
    Tatlock, Zachary
    Polikarpova, Nadia
    PROCEEDINGS OF THE ACM ON PROGRAMMING LANGUAGES-PACMPL, 2023, 7 (POPL):
  • [27] Refinements of Restricted Higher-Order Anti-Unification for Heuristic-Driven Theory Projection
    Schmidt, Martin
    Gust, Helmar
    Kuehnberger, Kai-Uwe
    Krumnack, Ulf
    KI 2011: ADVANCES IN ARTIFICIAL INTELLIGENCE, 2011, 7006 : 289 - 300
  • [28] UNIFICATION OF TERMS
    VANDERWA.FE
    ABRASIVE ENGINEERING, 1972, 18 (06): : 2 - &
  • [29] Finding parallel functional pearls: Automatic parallel recursion scheme detection in Haskell functions via anti-unification
    Barwell, Adam D.
    Brown, Christopher
    Hammond, Kevin
    FUTURE GENERATION COMPUTER SYSTEMS-THE INTERNATIONAL JOURNAL OF ESCIENCE, 2018, 79 : 669 - 686
  • [30] Unification of Hypergraph λ-Terms
    Yasen, Alimujiang
    Ueda, Kazunori
    TOPICS IN THEORETICAL COMPUTER SCIENCE, TTCS 2017, 2017, 10608 : 106 - 124