skip to main content
article
Free Access

A Methodology for LISP Program Construction from Examples

Published:01 January 1977Publication History
Skip Abstract Section

Abstract

An automatic programming system, THESYS, for constructing recursive LISP programs from examples of what they do is described. The construction methodology is illustrated as a series of transformations from the set of examples to a program satisfying the examples. The transformations consist of (1) deriving the specific computation associated with a specific example, (2) deriving control flow predicates, and (3) deriving an equivalent program specification in the form of recurrence relations. Equivalence between certain recurrence relations and various program schemata is proved. A detailed description of the construction of four programs is presented to illustrate the application of the methodology.

References

  1. 1 BIERMANN, A W , ANt) Ka~SnNASWA~,tV, R Constructing programs from example computations. Rep OSU-CISRC-TR-74-5, Comptr and Inform Sc~ Res Ctr, The Ohio State U , Columbus, Ohio, 1974Google ScholarGoogle Scholar
  2. 2 BLtJM, L, AND BLUM, M Toward a mathematical theory of mductwe mference Inform and Control28 (1975), 125-155Google ScholarGoogle Scholar
  3. 3 BORER, R S , AND MOORE, JS Proving theorems about LISP programs J ACM 22, I (Jan 1975), I29- 144 Google ScholarGoogle Scholar
  4. 4 GREEN, C C, ET AL Progress report on program understanding systems Rep STAN-CS-74-444, Comptr Scl Dep , Stanford U , Stanford, Calf, 1974 Google ScholarGoogle Scholar
  5. 5 HARDY, S Synthesis of LISP functions from examples Proc lnt Joint Conf on Artlf Intel , 1975, pp 240-245Google ScholarGoogle Scholar
  6. 6 KUJEL, P A theorem about automatic programming SIGART Newsletter (ACM) 51 (Aprd 1975), 5-8 Google ScholarGoogle Scholar
  7. 7 MCCARTHY, J , El" AL LISP 1 5 Programmer's Manual M I T Press, Cambrtdge, Mass., 1962 Google ScholarGoogle Scholar
  8. 8 MOOI~E, JS Introducing PROG into the pure LISP theorem prover. Rep CSL-74-3, Xerox Palo Alto Res Ctr, Palo Alto, Calf, 1974Google ScholarGoogle Scholar
  9. 9 SHAW, D E, ET AL Inferrmg LISP programs from examples Private commumcatlon, 1974Google ScholarGoogle Scholar
  10. 10 SIKLOSSV, L The synthesis of programs from their properties and the insane heunsUc Proc Third Texas Conf on Comptr Syst , Austin, Tex , 1974, paper 5-2Google ScholarGoogle Scholar
  11. 11 SUMMERS, P D Program construction from examples Ph D Th, Dep Comptr Scl, Yale U, New Haven, Conn , 1975 Google ScholarGoogle Scholar
  12. 12 WALDINGER, R J Constructing programs automatically using theorem proving Ph D Th, Dep Comptr Scl , Carnegie-Mellon U., Pittsburgh, Pa , 1969Google ScholarGoogle Scholar

Index Terms

  1. A Methodology for LISP Program Construction from Examples

    Recommendations

    Comments

    Login options

    Check if you have access through your login credentials or your institution to get full access on this article.

    Sign in

    Full Access

    • Published in

      cover image Journal of the ACM
      Journal of the ACM  Volume 24, Issue 1
      Jan. 1977
      175 pages
      ISSN:0004-5411
      EISSN:1557-735X
      DOI:10.1145/321992
      Issue’s Table of Contents

      Copyright © 1977 ACM

      Publisher

      Association for Computing Machinery

      New York, NY, United States

      Publication History

      • Published: 1 January 1977
      Published in jacm Volume 24, Issue 1

      Permissions

      Request permissions about this article.

      Request Permissions

      Check for updates

      Qualifiers

      • article

    PDF Format

    View or Download as a PDF file.

    PDF

    eReader

    View online with eReader.

    eReader