skip to main content
article

Max/plus tree automata for termination of term rewriting

Published: 01 February 2009 Publication History

Abstract

We use weighted tree automata as certificates for termination of term rewriting systems. The weights are taken from the arctic semiring: natural numbers extended with -∞, with the operations "max" and "plus". In order to find and validate these certificates automatically, we restrict their transition functions to be representable by matrix operations in the semiring. The resulting class of weighted tree automata is called path-separated.
This extends the matrix method for term rewriting and the arctic matrix method for string rewriting. In combination with the dependency pair method, this allows for some conceptually simple termination proofs in cases where only much more involved proofs were known before. We further generalize to arctic numbers "below zero": integers extended with -∞. This allows to treat some termination problems with symbols that require a predecessor semantics.
Correctness of this approach has been formally verified in the Coq proof assistant and the formalization has been contributed to the CoLoR library of certified termination techniques. This allows formal verification of termination proofs using the arctic matrix method in combination with the dependency pair transformation. This contribution brought a substantial performance gain in the certified category of the 2008 edition of the termination competition.
The method has been implemented by leading termination provers. We report on experiments with its implementation in one such tool, Matchbox, developed by the second author.
We also show that our method can simulate a previous method of quasi-periodic interpretations, if restricted to interpretations of slope one on unary signatures.

References

[1]
The termination competition. http://www.termination-portal.org/wiki/ Termination_Competition.
[2]
Termination problems data base. http://dev.aspsimon.org/projects/ termcomp/downloads/.
[3]
Amadio, R. M. Synthesis of max-plus quasi-interpretations. Fundamenta Informaticae , 65(1-2):29-60, 2005.
[4]
Arts, T. and Giesl, J. Termination of term rewriting using dependency pairs. Theoretical Computer Science, 236(1-2):133-178, 2000.
[5]
Baader, F. and Nipkow, T. Term Rewriting and All That. Cambridge University Press, 1998.
[6]
Bertot, Y. and Castéran, P. Coq'Art: The Calculus of Inductive Constructions. EATCS Texts in Theoretical Computer Science. Springer, 2004.
[7]
Blanqui, F., Delobel, W., Coupet-Grimal, S., Hinderer, S., and Koprowski, A. CoLoR, a Coq library on rewriting and termination. In Workshop on Termination (WST), 2006. http://color.loria.fr.
[8]
Contejean, É., Courtieu, P., Forest, J., Pons, O., and Urbain, X. Certification of automated termination proofs. In International Symposium on Frontiers of Combining Systems (FroCoS), volume 4720 of Lecture Notes in Computer Science, pages 148-162, 2007.
[9]
Droste, M., Pech, C., and Vogler, H. A Kleene theorem for weighted tree automata. Theory of Computing Systems, 38(1):1-38, 2005.
[10]
Droste, M. and Vogler, H. Weighted tree automata and weighted logics. Theoretical Computer Science, 366(3):228-247, 2006.
[11]
Eén, N. and Sörensson, N. An extensible SAT-solver. In Theory and Applications of Satisfiability Testing (SAT), volume 2919 of Lecture Notes in Computer Science, pages 502-518, 2003.
[12]
Endrullis, J. Jambox. http://joerg.endrullis.de.
[13]
Endrullis, J., Waldmann, J., and Zantema, H. Matrix interpretations for proving termination of term rewriting. Journal of Automated Reasoning, 40(2- 3):195-220, 2008.
[14]
Fuchs, L. Partially Ordered Algebraic Systems. Addison-Wesley, 1962.
[15]
Gaubert, S. and Plus, M. Methods and applications of (max, +) linear algebra. In Annual Symposium on Theoretical Aspects of Computer Science (STACS), volume 1200 of Lecture Notes in Computer Science, pages 261-282, 1997.
[16]
Giesl, J., Thiemann, R., Schneider-Kamp, P., and Falke, S. Automated termination proofs with AProVE. In International Conference on Rewriting Techniques and Applications (RTA), volume 3091 of Lecture Notes in Computer Science, pages 210-220, 2004.
[17]
Giesl, J., Thiemann, R., Swiderski, S., and Schneider-Kamp, P. Proving termination by bounded increase. In International Conference on Automated Deduction (CADE), volume 4603 of Lecture Notes in Computer Science, pages 443-459, 2007.
[18]
Golan, J. S. Semirings and their Applications. Kluwer, 1999.
[19]
Hirokawa, N. and Middeldorp, A. Polynomial interpretations with negative coefficients. In International Conference on Artificial Intelligence and Symbolic Computation (AISC), volume 3249 of Lecture Notes in Computer Science, pages 185-198, 2004.
[20]
Hirokawa, N. and Middeldorp, A. Tyrolean termination tool: Techniques and features. Information and Computation, 205(4):474-511, 2007.
[21]
Hofbauer, D. and Lautemann, C. Termination proofs and the length of derivations. In International Conference on Rewriting Techniques and Applications (RTA), volume 355 of Lecture Notes in Computer Science, pages 167-177, 1989.
[22]
Hofbauer, D. and Waldmann, J. Termination of string rewriting with matrix interpretations. In International Conference on Rewriting Techniques and Applications (RTA), volume 4098 of Lecture Notes in Computer Science, pages 328-342, 2006.
[23]
Hong, H. and Jakuš, D. Testing positiveness of polynomials. Journal of Automated Reasoning, 21(1):23-38, 1998.
[24]
Koprowski, A. TPA: Termination proved automatically. In International Conference on Rewriting Techniques and Applications (RTA), volume 4098 of Lecture Notes in Computer Science, pages 257-266, 2006. http://www.win.tue.nl/tpa.
[25]
Koprowski, A. and Waldmann, J. Arctic termination ... below zero. In International Conference on Rewriting Techniques and Applications (RTA), volume 5117 of Lecture Notes in Computer Science, pages 202-216, 2008.
[26]
Koprowski, A. and Waldmann, J. Max/plus tree automata for termination of term rewriting. In Workshop on Weighted Automata Theory and Applications (WATA), 2008.
[27]
Koprowski, A. and Zantema, H. Certification of proving termination of term rewriting by matrix interpretations. In Conference on Current Trends in Theory and Practice of Computer Science (SOFSEM), volume 4910 of Lecture Notes in Computer Science, pages 328-339, 2008.
[28]
Korp, M., Sternagel, C., Zankl, H., and Middeldorp, A. Tyrolean Termination Tool 2. In International Conference on Rewriting Techniques and Applications (RTA), volume 5595 of Lecture Notes in Computer Science, pages 295-304, 2009. See http://colo6-c703.uibk.ac.at/ttt2.
[29]
Krob, D. The equality problem for rational series with multiplicities in the tropical semiring is undecidable. In International Colloquium on Automata, Languages and Programming (ICALP), volume 623 of Lecture Notes in Computer Science, page 101-112, 1992.
[30]
Lucas, S. Polynomials over the reals in proofs of termination: from theory to practice. RAIRO: Theoretical Informatics and Applications, 39(3):547-586, 2005.
[31]
Marché, C., Waldmann, J., and Zantema, H. The termination competition 2007. http://www.imn.htwk-leipzig.de/-waldmann/talk/07/wst/competition.
[32]
Moser, G. and Schnabl, A. The derivational complexity induced by the dependency pair method. In International Conference on Rewriting Techniques and Applications (RTA), volume 5595 of Lecture Notes in Computer Science, pages 255-269, 2009.
[33]
Paulin-Mohring, C. Inductive definitions in the system Coq - rules and properties. In International Conference on Typed Lambda Calculi and Applications (TLCA), volume 664 of Lecture Notes in Computer Science, pages 328-345, 1993.
[34]
The Coq Development Team. The Coq proof assistant: Reference manual, version 8.2. http://coq.inria.fr, 2009.
[35]
Thiemann, R., Zantema, H., Giesl, J., and Schneider-Kamp, P. Adding constants to string rewriting. Applicable Algebra in Engineering, Communication and Computing, 19(1):27-38, 2008.
[36]
Waldmann, J. Matchbox: A tool for match-bounded string rewriting. In International Conference on Rewriting Techniques and Applications (RTA), volume 3091 of Lecture Notes in Computer Science, pages 85-94, 2004. http: //dfa.imn.htwk-leipzig.de/matchbox.
[37]
Waldmann, J. Arctic termination. In Workshop on Termination (WST), 2007.
[38]
Waldmann, J. Weighted automata for proving termination of string rewriting. Journal of Automata, Languages and Combinatorics, 12(4):545-570, 2007.
[39]
Zantema, H. and Waldmann, J. Termination by quasi-periodic interpretations. In International Conference on Rewriting Techniques and Applications (RTA), volume 4533 of Lecture Notes in Computer Science, pages 404-418, 2007.

Cited By

View all
  1. Max/plus tree automata for termination of term rewriting

    Recommendations

    Comments

    Information & Contributors

    Information

    Published In

    cover image Acta Cybernetica
    Acta Cybernetica  Volume 19, Issue 2
    February 2009
    311 pages

    Publisher

    Institute of Informatics, University of Szeged

    Szeged, Hungary

    Publication History

    Published: 01 February 2009
    Received: 01 August 2008

    Author Tags

    1. arctic semiring
    2. formal verification
    3. matrix interpretation
    4. max/plus algebra
    5. monotone algebra
    6. term rewriting
    7. termination
    8. weighted tree automaton

    Qualifiers

    • Article

    Contributors

    Other Metrics

    Bibliometrics & Citations

    Bibliometrics

    Article Metrics

    • Downloads (Last 12 months)0
    • Downloads (Last 6 weeks)0
    Reflects downloads up to 01 Jan 2025

    Other Metrics

    Citations

    Cited By

    View all

    View Options

    View options

    Media

    Figures

    Other

    Tables

    Share

    Share

    Share this Publication link

    Share on social media