| | |
Summary: SecondOrder Matching via Explicit
Substitutions #
Fl’avio L. C. de Moura ##1 and Fairouz Kamareddine 2 and Mauricio
AyalaRinc’on # # #1
1 Departamento de Matem’atica, Universidade de Bras’lia, Bras’lia D.F., Brasil.
flavio@mat.unb.br,ayala@mat.unb.br
2 School of Mathematical and Computer Sciences, HeriotWatt University,
Edinburgh, Scotland. fairouz@macs.hw.ac.uk
Abstract. Matching is a basic operation extensively used in computa
tion. Secondorder matching, in particular, provides an adequate envi
ronment for expressing program transformations and pattern recognition
for automated deduction. The past few years have established the ben
efit of using explicit substitutions for theorem proving and higherorder
unification. In this paper, we will make use of explicit substitutions to
facilitate matching: we develop a secondorder matching algorithm via
the ##style of explicit substitutions. We introduce a convenient nota
tion for matching in the ##calculus. This notation keeps the matching
equations separated from the incremental graftings. We characterise an
important class of secondorder matching problems which is essential to
prove termination of the algorithm. In addition, we illustrate how the
|