Automating changes of data type in functional programs
Author:
- 19 November 2002
- conference paper
- Published by Institute of Electrical and Electronics Engineers (IEEE)
- No. 10683062,p. 166-173
Abstract
I present an automatic technique for transforming a program by changing the data types in that program to ones which are more appropriate for the task. Programs are synthesised by proving modified synthesis theorems in the proofs-as-programs paradigm. The transformation can be verified in the logic of type theory. Transformations are motivated by the presence of subexpressions in the synthesised program. A library of data type changes is maintained, indexed by the motivating subexpressions. These transformations are extended from the motivating expressions to cover as much of the program as possible. I describe the general pattern of the revised synthesis proof, and show how such a proof can be guided by difference matching followed by rippling.Keywords
This publication has 8 references indexed in Scilit:
- Automating changes of data type in functional programs2002
- Rippling: A heuristic for guiding inductive proofsArtificial Intelligence, 1993
- The use of proof plans to sum seriesLecture Notes in Computer Science, 1992
- Difference matching1992
- Experiments with proof plans for inductionJournal of Automated Reasoning, 1991
- Toward formal development of programs from algebraic specifications: Implementations revisitedActa Informatica, 1988
- An Automatic Technique for Selection of Data Representations in SETL ProgramsACM Transactions on Programming Languages and Systems, 1981
- Algorithm = logic + controlCommunications of the ACM, 1979