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

Request the full text

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

  1. Research on Control Technology of CNC Wire Bending Robot with Single-head and Multi-mode
    LuJie ·Xiamen University ·2014 ·Master's thesis
  2. Research and Development on Automatic Programming System for CNC Gear Hobbing
    LiFuGen ·Hefei University of Technology ·2013 ·Master's thesis
  3. Research and Development of Process Database for CNC Gear Hobbing Machining System
    ChenBao ·Hefei University of Technology ·2013 ·Master's thesis
  4. Optimizing the Static Non-revision Approach to Clausal Belief Set
    FengLu ·Dalian Maritime University ·2012 ·Master's thesis
  5. Researching Movement Locus Generation for Irregular Surface Based on UG
    LiuDianHai ·Harbin Engineering University ·2012 ·Master's thesis
  6. Study on the Automatic Programming Technology of Gantry Four-axis NC Belt Grinding for Overall Marine Propeller
    LiZuo ·Chongqing University ·2013 ·Master's thesis
  7. Research on Technology of Computer Aided Automatic Rivet
  8. The CNC Machining Methods of Isometric Profile by Equal Error
    XiaoRuanSheng ·Henan Polytechnic University ·2011 ·Master's thesis
  9. The Module Development of Numerical Control Machining Programming System for Spatial Cam
  10. Research and Implementation of Automatic Programming of CNC Machining Based on AutoCAD
    ZhangWanLi ·Suzhou University ·2012 ·Master's thesis
  11. Study of Reverse Modeling、NC Machining and Simulation for Parts with Complex Surface
  12. The Research on Hobbing Machine NC Systems Zero-programming Techniques
    JiangGuangYu ·Shenyang Ligong University ·2013 ·Master's thesis
  13. Study on Theories and Automatic Programming System of CNC Hobbing Non-Circular Gears
    TianFangYong ·Lanzhou University of Technology ·2012 ·Doctoral dissertation
  14. Research and Development of Automatic Programming System in NC Camshaft Grinding Based on KBE
    CaoZuo ·Hunan University ·2010 ·Master's thesis
  15. The Research of NC Lathe Control System Used for Refabrication of the Train Wheels
    XiGangGang ·Shandong University of Technology ·2012 ·Master's thesis
  16. Research and Design of Numericai Control Innovation and NC System of Drum Lathe
    TianXiaoWen ·Shandong University of Technology ·2012 ·Master's thesis
  17. Research of the NC Automatic Programming for the Two Dimension Laser Cutting
    XieYouJiang ·Yanshan University ·2012 ·Master's thesis
  18. Automatic Programming for WEDM Based on UG Automatic Feature Recognition
  19. The Research of CNC System of Flame Cutting Machine
    LiWei ·Shandong University of Technology ·2012 ·Master's thesis
  20. Research on Quality Control Key Technical of Sheet Metal Incremental Forming