TOWARD AUTOMATIC PROGRAM SYNTHESIS

被引:118
作者
MANNA, Z
WALDINGER, RJ
机构
[1] Stanford University, Stanford,CA, United States
[2] Stanford Research Institute, Menlo Park,CA, United States
[3] Computer Science Department, United States
[4] Artificial Intelligence Group, United States
基金
美国国家航空航天局;
关键词
Answer extraction - Automatic construction - Automatic program synthesis - Automatic programs - Induction principles - Mathematical induction - Mathematical induction principle - Problem-solving - Program synthesis - Technical details;
D O I
10.1145/362566.362568
中图分类号
TP3 [计算技术、计算机技术];
学科分类号
0812 ;
摘要
An elementary outline of the theorem-proving approach to automatic program synthesis is given, without dwelling on technical details. The method is illustrated by the automatic construction of both recursive and iterative programs operating on natural numbers, lists, and trees.In order to construct a program satisfying certain specifications, a theorem induced by those specifications is proved, and the desired program is extracted from the proof. The same technique is applied to transform recursively defined functions into iterative programs, frequently with a major gain in efficiency.It is emphasized that in order to construct a program with loops or with recursion, the principle of mathematical induction must be applied. The relation between the version of the induction rule used and the form of the program constructed is explored in some detail. © 1971 ACM.
引用
收藏
页码:151 / +
页数:1
相关论文
共 29 条
[21]  
PARK D, MACHINE INTELLIGENCE, V5, P59
[22]  
PATTERSON MS, 1970, MIT201 ART INT MEM
[23]   A MACHINE-ORIENTED LOGIC BASED ON RESOLUTION PRINCIPLE [J].
ROBINSON, JA .
JOURNAL OF THE ACM, 1965, 12 (01) :23-&
[24]  
SCOTT D, UNPUBLISHED MEMO
[25]   EXPERIMENTS WITH A HEURISTIC COMPILER [J].
SIMON, HA .
JOURNAL OF THE ACM, 1963, 10 (04) :493-&
[26]   EXPERIMENTS WITH A DEDUCTIVE QUESTION-ANSWERING PROGRAM [J].
SLAGLE, JR .
COMMUNICATIONS OF THE ACM, 1965, 8 (12) :792-&
[27]  
STRONG HR, 1970, 2 ANN ACM S THEOR CO
[28]  
WALDINGER RJ, 1969, THESIS CARNEGIE MELL
[29]  
WALDINGER RJ, 1969, P INT JOINT C ARTIFI