Skip to main content
Log in

Conditions for confluence of innermost terminating term rewriting systems

  • Original Paper
  • Published:
Applicable Algebra in Engineering, Communication and Computing Aims and scope

Abstract

This paper presents a counterexample for the open conjecture whether innermost joinability of all critical pairs ensures confluence of innermost terminating term rewriting systems. We then show that innermost joinability of all normalized instances of the critical pairs is a necessary and sufficient condition. Using this condition, we give a decidable sufficient condition for confluence of innermost terminating systems. Finally, we enrich the condition by introducing the notion of left-stable rules. As a corollary, confluence of innermost terminating left-weakly-shallow TRSs is shown to be decidable.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Fig. 1

Similar content being viewed by others

References

  1. Aoto, T., Yoshida, J., Toyama, Y.: Proving confluence of term rewriting systems automatically. In: Proceedings of RTA 2009. LNCS, vol. 5595, pp. 93–102 (2009)

  2. Aoto, T., Toyama, Y., Uchida, K.: Proving confluence of term rewriting systems via persistency and decreasing diagrams. In: Proceedings of RTA-TLCA 2014, LNCS, vol. 8560, pp. 46–60 (2014)

  3. Baeten, J.C.M., Bergstra, J.A., Klop, J.W., Weijland, W.P.: Term-rewriting systems with rule priorities. Theor. Comput. Sci. 67, 283–301 (1989)

    Article  MathSciNet  MATH  Google Scholar 

  4. Dershowitz, N., Jouannaud, J.-P.: Rewrite systems. In: van Leeuwen, J. (ed.) Handbook of Theoretical Computer Science, pp. 243–320. MIT Press, Cambridge (1990)

    Google Scholar 

  5. Giesl, J., Aschermann, C., Brockschmidt, M., Emmes, F., Frohn, F., Fuhs, C., Hensel, J., Otto, C., Plücker, M., Schneider-Kamp, P., Ströder, T., Swiderski, S., Thiemann, R.: Analyzing program termination and complexity automatically with AProVE. J. Autom. Reason. 58, 3–31 (2017)

    Article  MathSciNet  MATH  Google Scholar 

  6. Gramlich, B.: Abstract relations between restricted termination and confluence properties of rewrite systems. Fundamenta Informaticae 24, 3–23 (1995)

    MathSciNet  MATH  Google Scholar 

  7. Hirokawa, N., Klein, D.: Saigawa: A confluence tool. In: Proceedings of 1st IWC, p. 49 (2012)

  8. Hullot, J.-M.: Canonical forms and unification. In: Proceedings of 5th CADE. LNCS, vol. 87, pp. 318–334 (1980)

  9. Knuth, D.E., Bendix, P.B.: Simple word problems in universal algebras. In: Leech, J. (ed.) Computational Problems in Abstract Algebra, pp. 263–297. Pergamon Press, Oxford (1970)

    Google Scholar 

  10. Mitsuhashi, I., Oyamaguchi, M., Jacquemard, F.: The confluence problem for flat TRSs. In: Proceedings of AISC 2006. LNCS, vol. 4120, pp. 68–81 (2006)

  11. Ohlebusch, E.: Advanced Topics in Term Rewriting. Springer, Berlin (2002)

    Book  MATH  Google Scholar 

  12. Sakai, M., Okamoto, K., Sakabe, T.: Innermost reductions find all normal forms on right-linear terminating overlay TRSs. In: Proceedings of 3rd WRS. Technical report DSIC-II/14/03, pp. 79–88 (2003)

  13. Sakai, M., Oyamaguchi, M., Ogawa, M.: Non-E-Overlapping, weakly shallow, and non-collapsing TRSs are confluent. In: Proceedings of CADE 2015. LNCS, vol. 9195, pp. 111–126 (2015)

  14. Zankl, H., Felgenhauer, B., Middeldorp, A.: CSI: a confluence tool. In: Proceedings of CADE 2011. LNCS, vol. 6803, pp. 499–505 (2011)

Download references

Acknowledgements

The authors are grateful to Yoshihito Toyama, Aart Middeldorp, Nao Hirokawa, and Takahito Aoto for their useful comments.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Masahiko Sakai.

Additional information

Publisher's Note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

A Priority rewriting system

A Priority rewriting system

We show that there exists a rewrite relation satisfying that , , and by using priority term rewriting systems (PRS) [3].

Definition 5

A priority term rewriting system (PRS) [3] is a pair \((\mathcal {R}, \blacktriangleright )\) of a TRS \(\mathcal {R}\) and a partial order \(\blacktriangleright \) on the rules of \(\mathcal {R}\). A rule \(l_1 \rightarrow r_1\) has a higher priority than a rule \(l_2 \rightarrow r_2\) iff \(l_1 \rightarrow r_1 \blacktriangleright l_2 \rightarrow r_2\). A priority rewrite step is defined as: iff for a substitution \(\sigma \), a position \(p \in \mathrm {Pos}(s)\) and a rule \(l \rightarrow r \in \mathcal {R}\),

  • and

  • \(l \rightarrow r\) is maximal with respect to \(\blacktriangleright \) among rules that reduce \(l\sigma \), i.e. \(l' \rightarrow r' \blacktriangleright l \rightarrow r\) for any different rule \(l' \rightarrow r' \in \mathcal {R}\) such that \(l\sigma = l'\sigma '\) for some \(\sigma '\).

It is clear that .

Example 7

For a PRS

$$\begin{aligned} \begin{array}{lll} \begin{aligned} &{}f(g(x)) \rightarrow b \ \ &{}(1)\\ &{}g(a) \rightarrow c \ \ \ \ \ &{}(2)\\ &{}g(x) \rightarrow x \ \ \ \ \ &{}(3) \end{aligned} &{} \text {and} &{} (1) \blacktriangleright (2) \blacktriangleright (3), \end{array} \end{aligned}$$

, but is not a priority rewrite step.

Lemma 13

Proof

Since , we will show . For , it is obvious from .

Now, we prove by contradiction. We assume that for . Then there exist a rule \(l \rightarrow r \in \mathcal {R}\), normalized substitution \(\sigma \) and position \(p \in \mathrm {Pos}(t)\) such that \(t = t[l\sigma ]_p\) and \(t' = t[r\sigma ]_p\). Since , is not possible. This means that there must exist \(l' \rightarrow r' \in \mathcal {R}\) such that \(l' \rightarrow r' \blacktriangleright l \rightarrow r\) and \(l\sigma = l'\sigma '\) for some substitution \(\sigma '\). Note that since every proper subterm of \(l\sigma ({}=l'\sigma ')\) is irreducible. This means that t can be reduced by . This is a contradiction. \(\square \)

Lemma 14

If \(\blacktriangleright \) is total then .

Proof

We first show that implies \(u=v\) or . If the rewriting steps to u and v occur at the same position, \(u = v\) since the same rule is used for the rewriting from the totality of \(\blacktriangleright \). Otherwise, the rewriting steps to u and v occur at parallel positions, and hence there exists a term t such that . Therefore the lemma is easily obtained. \(\square \)

Rights and permissions

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Ishizuki, S., Oyamaguchi, M. & Sakai, M. Conditions for confluence of innermost terminating term rewriting systems. AAECC 30, 349–360 (2019). https://doi.org/10.1007/s00200-018-0377-8

Download citation

  • Received:

  • Accepted:

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s00200-018-0377-8

Keywords

Mathematics Subject Classification

Navigation