2 research outputs found

    A Modular Order-sorted Equational Generalization Algorithm

    Full text link
    Generalization, also called anti-unification, is the dual of unification. Given terms t and t , a generalizer is a term t of which t and t are substitution instances. The dual of a most general unifier (mgu) is that of least general generalizer (lgg). In this work, we extend the known untyped generalization algorithm to, first, an order-sorted typed setting with sorts, subsorts, and subtype polymorphism; second, we extend it to work modulo equational theories, where function symbols can obey any combination of associativity, commutativity, and identity axioms (including the empty set of such axioms); and third, to the combination of both, which results in a modular, order-sorted equational generalization algorithm. Unlike the untyped case, there is in general no single lgg in our framework, due to order-sortedness or to the equational axioms. Instead, there is a finite, minimal and complete set of lggs, so that any other generalizer has at least one of them as an instance. Our generalization algorithms are expressed by means of inference systems for which we give proofs of correctness. This opens up new applications to partial evaluation, program synthesis, and theorem proving for typed equational reasoning systems and typed rulebased languages such as ASF+SDF, Elan, OBJ, Cafe-OBJ, and Maude. 漏 2014 Elsevier Inc. All rights reserved. 1.M. Alpuente, S. Escobar, and J. Espert have been partially supported by the EU (FEDER) and the Spanish MEC/MICINN under grant TIN 2010-21062-C02-02, and by Generalitat Valenciana PROMETEO2011/052. J. Meseguer has been supported by NSF Grants CNS 09-04749, and CCF 09-05584.Alpuente Frasnedo, M.; Escobar Rom谩n, S.; Espert Real, J.; Meseguer, J. (2014). A Modular Order-sorted Equational Generalization Algorithm. Information and Computation. 235:98-136. https://doi.org/10.1016/j.ic.2014.01.006S9813623

    ACUOS: A System for Order-Sorted Modular ACU Generalization

    Full text link
    [ES] La generalizaci贸n, tambi茅n denominada anti-unificaci贸n, es la operaci贸n dual de la unificaci贸n. Dados dos t茅rminos t y t' , un generalizador es un t茅rmino t'' del cual t y t' son instancias de sustituci贸n. El concepto dual del unificador m谩s general (mgu) es el de generalizador menos general (lgg). En esta tesina extendemos el conocido algoritmo de generalizaci贸n sin tipos a, primero, una configuraci贸n order-sorted con sorts, subsorts y polimorfismo de subtipado; en segundo lugar, la extendemos para soportar generalizaci贸n m贸dulo teor铆as ecuacionales, donde los s铆mbolos de funci贸n pueden obedecer cualquier combinaci贸n de axiomas de asociatividad, conmutatividad e identidad (incluyendo el conjunto vac铆o de dichos axiomas); y, en tercer lugar, a la combinaci贸n de ambos, que resulta en un algoritmo modular de generalizaci贸n order-sorted ecuacional. A diferencia de las configuraciones sin tipos, en nuestro marco te贸rico en general el lgg no es 煤nico, lo que se debe tanto al tipado como a los axiomas ecuacionales. En su lugar, existe un conjunto finito y m铆nimo de lggs, tales que cualquier otra generalizaci贸n tiene a alguno de ellos como instancia. Nuestros algoritmos de generalizaci贸n se expresan mediante reglas de inferencia para las cuales damos demostraciones de correcci贸n. Ello abre la puerta a nuevas aplicaciones en campos como la evaluaci贸n parcial, la s铆ntesis de programas, la miner铆a de datos y la demostraci贸n de teoremas para sistemas de razonamiento ecuacional y lenguajes tipados basados en reglas tales como ASD+SDF, Elan, OBJ, CafeOBJ y Maude. Esta tesis tambi茅n describe una herramienta para el c贸mputo automatizado de los generalizadores de un conjunto dado de estructuras en un lenguaje tipado m贸dulo un conjunto de axiomas dado. Al soportar la combinaci贸n modular de atributos ecuacionales de asociatividad, conmutatividad y existencia de elemento neutro (ACU) para s铆mbolos de funci贸n arbitrarios, la generalizaci贸n ACU modular aporta suficiente poder expresivo a la generalizaci贸n ordinaria para razonar sobre estructuras de datos tipadas tales como listas, conjuntos y multiconjuntos. La t茅cnica ha sido implementada con generalidad y eficiencia en el sistema ACUOS y puede ser f谩cilmente integrada con software de terceros.[EN] Generalization, also called anti-uni cation, is the dual of uni cation. Given terms t and t 0 , a generalization is a term t 00 of which t and t 0 are substitution instances. The dual of a most general uni er (mgu) is that of least general generalization (lgg). In this thesis, we extend the known untyped generalization algorithm to, rst, an order-sorted typed setting with sorts, subsorts, and subtype polymorphism; second, we extend it to work modulo equational theories, where function symbols can obey any combination of associativity, commutativity, and identity axioms (includ- ing the empty set of such axioms); and third, to the combination of both, which results in a modular, order-sorted equational generalization algo- rithm. Unlike the untyped case, there is in general no single lgg in our framework, due to order-sortedness or to the equational axioms. Instead, there is a nite, minimal set of lggs, so that any other generalization has at least one of them as an instance. Our generalization algorithms are expressed by means of inference systems for which we give proofs of cor- rectness. This opens up new applications to partial evaluation, program synthesis, data mining, and theorem proving for typed equational rea- soning systems and typed rule-based languages such as ASF+SDF, Elan, OBJ, Cafe-OBJ, and Maude. This thesis also describes a tool for automatically computing the gen- eralizers of a given set of structures in a typed language modulo a set of axioms. By supporting the modular combination of associative, com- mutative and unity (ACU) equational attributes for arbitrary function symbols, modular ACU generalization adds enough expressive power to ordinary generalization to reason about typed data structures such as lists, sets and multisets. The ACU generalization technique has been generally and e ciently implemented in the ACUOS system and can be easily integrated with third-party software.Espert Real, J. (2012). ACUOS: A System for Order-Sorted Modular ACU Generalization. http://hdl.handle.net/10251/1921
    corecore