𝔖 Bobbio Scriptorium
✦   LIBER   ✦

Polytypic Programming in Maude

✍ Scribed by M. Clavel; F. Durán; N. Martí-Oliet


Book ID
104445282
Publisher
Elsevier Science
Year
2000
Tongue
English
Weight
187 KB
Volume
36
Category
Article
ISSN
1571-0661

No coin nor oath required. For personal study only.

✦ Synopsis


The idea of polytypic programming is to write programs that are defined by induction on the structure of user-defined datatypes. In this way, many functions with similar functionalities do not have to be written over and over again for different datatypes. So far, this programming style has been developed in functional languages like Haskell, extended with new syntactic constructs for defining polytypic programs. In this paper we show that polytypic programming can be reduced to metaprogramming, and that can be developed in a reflective first-order language like Maude, without having to extend the language. This has the additional advantage of allowing us to use standard formal tools to prove properties about polytypic programs. We illustrate our methodology via examples. In particular, we explain how to define in Maude two non-trivial generic functions, namely, the polytypic versions of the functions map and cata, and how to prove properties about them using an inductive theorem prover for Maude modules.


📜 SIMILAR VOLUMES


Formal polytypic programs and proofs
✍ VERBRUGGEN, WENDY; DE VRIES, EDSKO; HUGHES, ARTHUR 📂 Article 📅 2010 🏛 Cambridge University Press 🌐 English ⚖ 335 KB
cover
✍ Mabry, Donna Foley 📂 Fiction 📅 2014 🌐 English ⚖ 414 KB
cover
✍ Mabry, Donna 📂 Fiction 📅 2014 🏛 CreateSpace Independent Publishing Platform 🌐 English ⚖ 301 KB

In 1906, I was barely over fourteen years old, and it was my wedding day. My older sister, Helen, came to my room, took me by the hand, and sat me down on the bed. She opened her mouth to say something, but then her face flushed, and she turned her head to look out the window. After a second, she sq

cover
✍ Mabry, Donna 📂 Fiction 🌐 English ⚖ 207 KB