Utilize este identificador para referenciar este registo:
https://hdl.handle.net/1822/842
Título: | Point-free program transformation |
Autor(es): | Cunha, Alcino Pinto, Jorge Sousa |
Palavras-chave: | Program transformation Functional programming Program calculation |
Data: | 2004 |
Editora: | Universidade do Minho. Departamento de Informática |
Citação: | CUNHA, Alcino ; PINTO, Jorge Sousa – “Point-free program transformation”. Braga : Universidade do Minho. Departamento de Informática, 2004. |
Relatório da Série N.º: | DI-PURe;04.02.03 |
Resumo(s): | Functional programs are particularly well suited to formal manipulation by equational reasoning. In particular, it is straightforward to use calculational methods for program transformation. Well-known transformation techniques, like tupling or the introduction of accumulating parameters, can be implemented using calculation through the use of the fusion (or promotion) strategy. In this paper we revisit this transformation method, but, unlike most of the previous work on this subject, we adhere to a pure point-free calculus that emphasizes the advantages of equational reasoning. We focus on the accumulation strategy initially proposed by Bird, where the transformed programs are seen as higher-order folds calculated systematically from a specification. The machinery of the calculus is expanded with higher-order point-free operators that simplify the calculations. A substantial number of examples (both classic and new) are fully developed, and we introduce several shortcut optimization rules that capture typical transformation patterns. |
Tipo: | Relatório |
URI: | https://hdl.handle.net/1822/842 |
Acesso: | Acesso aberto |
Aparece nas coleções: | HASLab - Artigos em revistas internacionais DI/CCTC - Relatórios Técnicos |
Ficheiros deste registo:
Ficheiro | Descrição | Tamanho | Formato | |
---|---|---|---|---|
PUReTR040203.pdf | 329,91 kB | Adobe PDF | Ver/Abrir |