Advanced Search

Browse by Discipline

Scientific Societies

E-print Alerts

Add E-prints

E-print Network

  Advanced Search  

Pattern Matching vs. Elimination Rules A Case Study in LEGO

Summary: Pattern Matching vs. Elimination Rules
A Case Study in LEGO
Andreas Abel 
Department of Computer Science
University of Munich
September 30, 1999
1 Introduction
In Type Theory there are two paradigms of how to obtain functions over
recursive types: Either by recursion resp. elimination rules or as the xed-
point of a structural recursive de nition. In [Gim94] Eduardo Gimenez has
shown that both methods are equivalent. On the one hand one can codify
the elimiation rules as structural recursive functions. On the other hand he
describes a method of how from a function f de ned as a xed-point one
obtains an extensionally equal function f 0 using only elimination rules.
In the following we exercise his method on a small example. Doing this
we want to demonstrate that pattern matching de nitons are often much
more straight forward and understandable than elimination style de nitions
are. (In my case, it took me a quater of an hour to do the pattern matching


Source: Abel, Andreas - Theoretische Informatik, Ludwig-Maximilians-Universit√§t M√ľnchen


Collections: Computer Technologies and Information Sciences