Abstract
In this work we study anti-unification for unranked hedges, permitting context and hedge variables. Hedges are sequences of unranked terms. The anti-unification problem of two hedges \(\tilde{s} \) and \(\tilde{q}\) is concerned with finding their generalization, a hedge \(\tilde{g}\) such that both \(\tilde{s} \) and \(\tilde{q}\) are substitution instances of \(\tilde{g}\). Second-order power is gained by using context variables to generalize vertical differences at the input hedges. Hedge variables are used to generalize horizontal differences. An anti-unification algorithm is presented, which computes a generalization of input hedges and records all the differences. The computed generalizations are least general among a certain class of generalizations.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
References
Alpuente, M., Escobar, S., Meseguer, J., Ojeda, P.: A modular equational generalization algorithm. In: Hanus, M. (ed.) LOPSTR 2008. LNCS, vol. 5438, pp. 24–39. Springer, Heidelberg (2009)
Alpuente, M., Escobar, S., Meseguer, J., Ojeda, P.: Order-sorted generalization. Electr. Notes Theor. Comput. Sci. 246, 27–38 (2009)
Amir, A., Hartman, T., Kapah, O., Shalom, B.R., Tsur, D.: Generalized LCS. Theor. Comput. Sci. 409(3), 438–449 (2008)
Armengol, E., Plaza, E.: Bottom-up induction of feature terms. Machine Learning 41(3), 259–294 (2000)
Baader, F.: Unification, weak unification, upper bound, lower bound, and generalization problems. In: Book, R.V. (ed.) RTA 1991. LNCS, vol. 488, pp. 86–97. Springer, Heidelberg (1991)
Baumgartner, A., Kutsia, T.: Unranked Second-Order Anti-Unification. Technical report no. 14-05, RISC, JKU Linz (March 2014), http://www.risc.jku.at/publications/download/risc_4966/Baumgartner_Kutsia_2014.pdf
Baumgartner, A., Kutsia, T., Levy, J., Villaret, M.: A variant of higher-order anti-unification. In: van Raamsdonk, F. (ed.) RTA. LIPIcs, vol. 21, pp. 113–127. Schloss Dagstuhl - Leibniz-Zentrum fuer Informatik (2013)
Boley, H.: Finite domains and exclusions as first-class citizens. In: Dyckhoff, R. (ed.) ELP 1993. LNCS, vol. 798, pp. 37–61. Springer, Heidelberg (1994)
Bulychev, P.E., Kostylev, E.V., Zakharov, V.A.: Anti-unification algorithms and their applications in program analysis. In: Pnueli, A., Virbitskaite, I., Voronkov, A. (eds.) PSI 2009. LNCS, vol. 5947, pp. 413–423. Springer, Heidelberg (2010)
Burghardt, J.: E-generalization using grammars. Artif. Intell. 165(1), 1–35 (2005)
Delcher, A.L., Kasif, S.: Efficient parallel term matching and anti-unification. J. Autom. Reasoning 9(3), 391–406 (1992)
Hasker, R.W.: The Replay of Program Derivations. PhD thesis, University of Illionois at Urbana-Champaign (1995)
Huet, G.: Résolution d’équations dans des langages d’ordre 1,2,…,ω. PhD thesis, Université Paris VII (September 1976)
Kao, M.-Y., Lam, T.W., Sung, W.-K., Ting, H.-F.: An even faster and more unifying algorithm for comparing trees via unbalanced bipartite matchings. J. Algorithms 40(2), 212–233 (2001)
Krumnack, U., Schwering, A., Gust, H., Kühnberger, K.-U.: Restricted higher-order anti-unification for analogy making. In: Orgun, M.A., Thornton, J. (eds.) AI 2007. LNCS (LNAI), vol. 4830, pp. 273–282. Springer, Heidelberg (2007)
Kutsia, T., Levy, J., Villaret, M.: Anti-unification for unranked terms and hedges. J. Autom. Reasoning 52(2), 155–190 (2014)
Li, H., Thompson, S.: Similar code detection and elimination for Erlang programs. In: Carro, M., Peña, R. (eds.) PADL 2010. LNCS, vol. 5937, pp. 104–118. Springer, Heidelberg (2010)
Lu, J., Mylopoulos, J., Harao, M., Hagiya, M.: Higher order generalization and its application in program verification. Ann. Math. Artif. Intell. 28(1-4), 107–126 (2000)
Pfenning, F.: Unification and anti-unification in the calculus of constructions. In: LICS, pp. 74–85. IEEE Computer Society (1991)
Plotkin, G.D.: A note on inductive generalization. Machine Intel. 5(1), 153–163 (1970)
Reynolds, J.C.: Transformational systems and the algebraic structure of atomic formulas. Machine Intel. 5(1), 135–151 (1970)
Schmid, U.: Inductive Synthesis of Functional Programs. LNCS (LNAI), vol. 2654. Springer, Heidelberg (2003)
Yamamoto, A., Ito, K., Ishino, A., Arimura, H.: Modelling semi-structured documents with hedges for deduction and induction. In: Rouveirol, C., Sebag, M. (eds.) ILP 2001. LNCS (LNAI), vol. 2157, pp. 240–247. Springer, Heidelberg (2001)
Zhang, K.: Algorithms for the constrained editing problem between ordered labeled trees and related problems. Pattern Recognition 28, 463–474 (1995)
Author information
Authors and Affiliations
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2014 Springer-Verlag Berlin Heidelberg
About this paper
Cite this paper
Baumgartner, A., Kutsia, T. (2014). Unranked Second-Order Anti-Unification. In: Kohlenbach, U., Barceló, P., de Queiroz, R. (eds) Logic, Language, Information, and Computation. WoLLIC 2014. Lecture Notes in Computer Science, vol 8652. Springer, Berlin, Heidelberg. https://doi.org/10.1007/978-3-662-44145-9_5
Download citation
DOI: https://doi.org/10.1007/978-3-662-44145-9_5
Publisher Name: Springer, Berlin, Heidelberg
Print ISBN: 978-3-662-44144-2
Online ISBN: 978-3-662-44145-9
eBook Packages: Computer ScienceComputer Science (R0)