Electronic Proceedings in Theoretical Computer Science (Apr 2012)

Lazy AC-Pattern Matching for Rewriting

  • Walid Belkhir,
  • Alain Giorgetti

DOI
https://doi.org/10.4204/EPTCS.82.3
Journal volume & issue
Vol. 82, no. Proc. WRS 2011
pp. 37 – 51

Abstract

Read online

We define a lazy pattern-matching mechanism modulo associativity and commutativity. The solutions of a pattern-matching problem are stored in a lazy list composed of a first substitution at the head and a non-evaluated object that encodes the remaining computations. We integrate the lazy AC-matching in a strategy language: rewriting rule and strategy application produce a lazy list of terms.