Design and Implementation of Program Synthesis Based on Resolution Principle
- Author
- DuHui
- Advisor
- WangShuYi
- School
- Dalian University of Technology
- Major
- Applied Computer Technology
- Classification
- TP311.11 Programming method
- Degree
- Master's thesis
- Year
- 2006
- Downloads
- 153
- Citations
- 1
- Proceedings to be consolidated
- Resolution Principle
- Theorems automatically prove
- Automatic programming
Abstract
Broadly , the program design process is the theorem proving process, and thus is closely related to program synthesis and machine theorem proved . Through the general structure of the proof to the extraction procedure . The Resolution Principle a apagoge , people already know can be extracted from the proof , due to the sequence program , and it has proved , can be extracted from the due proof tree branch . Comes down to the principle of reductio ad absurdum essentially , we can not guarantee its structural , and therefore can not be guaranteed to be able to extract the cycle program , but by mathematical induction resolution principle can be used to extract the body of the loop , in order to extract the cycle program . In this paper, the resolution principle computer theorem proving , and then from attributed prove tree extraction procedure . This paper is mainly to do the work as follows : first , in C / C language design and realization based on the resolution principle prove Theorem computer system , the system is able to demonstrate that the first-order predicate logic formulas and constructed attributed to prove tree . The second theorem proving for the form (?) (?) P ((?), (?)) , The program comprehensive program designed and implemented the program can from attributed prove tree in the extraction procedure to extract the program can according to the input ( ?) calculating an output (? ) and satisfies P (( ? ) , ( ??? )) . The working process of the extraction procedure is the transformation attributed to prove tree , the leaf nodes of the tree attributed to prove transformed to the direction of the roots one by one knot point extraction procedure , extraction procedures of each node and its child node extraction procedures related to itself , the ultimate root of the program is to calculate the output ( ?) program . This paper describes how to use the method of mathematical induction extraction cycle program , the method is able to describe the problem from the recursive extraction cycle program . The realization of this article is to consider computer resource constraints , not all of theorem proving able to give good answers , may not be able to extract some theorems program . In this paper, based on the resolution principle to achieve automatic theorem proof and program extraction problem to be solved , and the solution of these problems will make mechanical theorem proving and program synthesis from theory to practical .
Table of contents
Abstract 3-4
Abstract 4-7
1 Introduction 7-11
1.1 research background 7-8
the purpose and significance of the research 1.2
1.3 related historical to review research status 8-9
1.4 of this article content and content organization 9-11
2 Preliminaries 11-22
210 first-order predicate calculus basic system 11-13
2.1.1 Overview
the 2.1.2 Standard simplification steps 11-12
2.1.3 Standard 12-13
2.2 Resolution Principle Overview 13
2.3 propositional logic resolution principle 13-14
240 first-order logic resolution principle 14-18
2.4.1 replacing-one replacement 14-15
Resolution Principle 2.4.2 first-order logic 15-16
2.4.3 first-order logic attributed process 16-17
2.4.4 deductive tree 17-18
2.5 boils down strategy 18-19
2.6 from attributed prove tree extraction procedures 19-22
2.6.1 from attributed prove tree extraction procedure outlined 19-20
2.6.2 attributed proof tree extraction procedure 20-22
3 first-order formulas computer internal representation and structure 22-32
3.1 input specification 22-24
3.2 unity to replace the internal representation and related operating 24-25
3.3 predicate computer internal representation 25-27
3.4 clause internal representation and implementation 27-30
3.4.1 the clause class data members defined 28
the 3.4.2 clause class data members defined 28-30
350 clause set internal representation and achieve 30-31
3.5.1 clause set features 30
3.5.2 clause set used constants 30
3.5.3 clause set data members defined 30-31
the
of 3.5.4 clause set the operating 31
3.6 summarizes 31-32
4 resolution principle to achieve 32-44
4.1 boils down process outlined 32-33
the
clause 4.2 entry with a new clause to generate 33-35
4.3 boils down control 35-39
the
comes down to control flow between 4.3.1 two clauses 35-36
4.3.2 The overall comes down to control flow 36-39
4.4 clauses due with the new clause generated 39-43
4.4.1 MGU collection calculated 40-42
4.4.2 new clause generated 42-43
4.5 summarizes 43-44
5 program extraction process to achieve 44-50
5.1 conversion attributed to prove the tree 44-46
5.2 extracted from the transformed due proof tree program 46-49
5.3 summarizes 49-50
6 extracted by mathematical induction loop program 50-54
6.1 mathematical induction extraction cycle program 50-51
6.2 application example 51-53
6.3 summarizes 53-54
7 application example 54-58
7.1 Problem Description 54-55
7.2 program to achieve 55-58
concluded 58-60
Reference 60-62
the
Appendix A program contents list 62-65
master's degree during the academic situation 65-66
Acknowledgements 66-67
the
Dalian University dissertation Copyright use the power of attorney 67
Related dissertations
- Research on Control Technology of CNC Wire Bending Robot with Single-head and Multi-mode
- Research and Development on Automatic Programming System for CNC Gear Hobbing
- Research and Development of Process Database for CNC Gear Hobbing Machining System
- Optimizing the Static Non-revision Approach to Clausal Belief Set
- Researching Movement Locus Generation for Irregular Surface Based on UG
- Study on the Automatic Programming Technology of Gantry Four-axis NC Belt Grinding for Overall Marine Propeller
- Research on Technology of Computer Aided Automatic Rivet
- The CNC Machining Methods of Isometric Profile by Equal Error
- The Module Development of Numerical Control Machining Programming System for Spatial Cam
- Research and Implementation of Automatic Programming of CNC Machining Based on AutoCAD
- Study of Reverse Modeling、NC Machining and Simulation for Parts with Complex Surface
- The Research on Hobbing Machine NC Systems Zero-programming Techniques
- Study on Theories and Automatic Programming System of CNC Hobbing Non-Circular Gears
- Research and Development of Automatic Programming System in NC Camshaft Grinding Based on KBE
- The Research of NC Lathe Control System Used for Refabrication of the Train Wheels
- Research and Design of Numericai Control Innovation and NC System of Drum Lathe
- Research of the NC Automatic Programming for the Two Dimension Laser Cutting
- Automatic Programming for WEDM Based on UG Automatic Feature Recognition
- The Research of CNC System of Flame Cutting Machine
- Research on Quality Control Key Technical of Sheet Metal Incremental Forming