Research on Some Problems about Proving the Correctness of Programming
- Author
- FanNianBai
- Advisor
- ZhouShuZi , ZhangDaFang
- School
- Hunan University
- Major
- Applied Mathematics
- Classification
- TP311.1 Programming
- Degree
- Doctoral dissertation
- Year
- 2005
- Downloads
- 523
- Citations
- 1
- Formal verification
- Unified Modeling Language
- Model Checking
- Functional language
- Side Effect
- Abstruct Data Type
- Types Algebra
- Turing machine
Abstract
The development of computer software is affected by many factors and is delayed comparing with hardware. The safety, reliability and stability of software have been important problems and attracted people’s much attention for a long time.With the fast development of the huge software as well as the high safety demand from high technique such as spaceflight and aviation design, the quality of software, especially the correctness of software,has become more and more important. Therefore, the proof of the correctness of software and the test of software have been attractive research fields. The aim of proof of the correctness of software is to ensure that there is no errors in program and to meet the demands of the users. On the other hand, the aim of test of software is to find possible errors in program. Both are closely related to the whole life cycle of software. However, they are essentially different with each other. There have been developed various kinds of models such as the computable function model, predicate word calculus, Turing machine, algebra model etc.in the related fields. Each model has its one advantage and limitation. It is practically impossible to use only one model to solve the reliability problems due to its complexity. The core of a program is a finite state machine(FSM). In this thesis we discuss several deferent kinds of FSM model including the tradition FSM and the currrently popular state machine in UML(Unified Modeling Language). We propose a matrix model of FSM. We then use pure mathematical method as a tool to analyze related problems in the fields of computer and derive related algebraic properties. By the use of complete algebra theory, we discuss algebraic problems concerned with computer theory. These problems include the reliability, the completeness and the solvability etc. Meanwhile, with the help of the Object-oriented design theory, we discuss the extensibility mechanism in UML language. In other words, we study the reliability from the source of design.In this thesis, we study the correctness of program from the following aspects:1 .The definition of the correctness of program. So far, there is not a strict definition about the correctness of program. In this thesis, we give a strict definition and point out some misunderstanding formed for a long time.2.The correctness of model. We discuss the use case and state machine of UML in this thesis. Use case is useful not only for testing, but also for modeling. The problem of use case is generally very large. As a result.it brings difficulty in the construction of the model and the test of program. We discuss the amount of use case about stack, and obtain a recurrence formula. The state machine in UML is different from the traditional FSM. In this thesis, we establish a model that combines the statechart diagram with traditional FSM. It provides a convenient tool to code efficient and reliable programs.3.Types system and correctness of types system. Types system is part of program language. It follow the tracks type of the variables including types of expressions. Checking of type could ensure the correctness of program. We analyze finite bases in classic algebra and obtain a conclusion that congruence-permutable algebra varieties has finite equation bases. By means of matrix model for Turing machine, we derive an algebra that posseses solvable word problems but not recursively solvable word problems. We study the soundness and complement of the types system, In addition,we establish a theorem for the types system to be soundness4.Correctness of programs language and the algorithms. We study correctness of program language and give a way to solve the correctness of the cycle structure program. After giving the good side effect idea we get the results that side effect of applicative language is not good and that side effect of imperative language after adding assign sentence is good.
Table of contents
Abstract 9-11
Abstract 11-13
Chapter 1 Introduction 13-22
1.1 Background 13-14
1.2 Overview of program correctness verification 14-17
1.3 Our results and innovation 17-21
1.3.1 program correctness definition 17-18
1.3.2 correctness proof 18-21
1.4 thesis is 21-22
Chapter 2, the discussion about the correctness of the procedure 22-37
2.1 program correctness (Correctness) concept 22-24
2.1.1 syntactic correctness 22-23
2.1.2 semantic correctness 23-24
2.2 program correctness verification methods 24-36
2.2.1 static type checking and testing 24-26
2.2.2 for use logical reasoning to verify the correctness of the program structure 26-32
2.2.3 Other ways to verify the correctness of programs 32-36
2.3 Summary 36-37
Chapter 3 type system and class algebra 37-60
3.1 type system introduced 37-39
3.2 Category Algebra and error handling 39-45
3.3 one has a finite group algebra 45-49
3.4 Turing machine using the undecidability of the halting problem solving algebraic systems unsolvability 49-52
3.5 type of system reliability as a condition 52-58
3.5.1 does not contain empty type of reliability and completeness 53-56
3.5.2 Types of reliability with empty 56-58
3.6 Summary 58-60
Chapter 4 ALGOL side effects of the expression problem 60-68
4.1 ALGOL denotational semantics 61-62
4.2 Coercion side effects of the expression language problems 62-64
4.3 functional language expressions side issues 64-67
4.4 Summary 67-68
Chapter 5 Formal engineering modeling and verification 68-79
5.1 UML state diagram Introduction 68-71
5.1.1 class diagram 69
5.1.2 state diagram 69-70
5.1.3 using the state diagram programming 70-71
5.2 verify the correctness of the state diagram based 71-75
5.2.1 design interactive stack operation state machine 71-73
5.2.2 correctness verification 73-75
5.3 stack-based operation of a use case -scale formula 75-77
5.4 Summary 77-79
Conclusion 79-81
References 81-88
Appendix A: PhD papers published during 88-89
Appendix B: Description of an abstract data type ( class C language description ) 89-98
Appendix C: PhD in major research projects during 98-99
Thanks 99
Related dissertations
- Software Trustworthiness Mesurement Based on Model Checking
- Research on Formal Verification Methods of Model of Complicated Information System
- Application of model checking to the formal verification of security protocols
- Lattice-valued Quantitative Verification of State Transition Systems
- Formal Verification of Hybrid Systems
- Compositional Verification Based on Interface Automata
- Explaining Counterexample of Model Checking
- Research of UML-Oriented Model Checking
- Research on Verification of Secure Operating System Based on Model Checking
- Research on the Formal Verification of ASIP Architecture Level Design
- Research on SAT-based Formal Verification Approach for Digital Circuits
- Research on Formal Methods for Digital Circuit Verification Based on Polynomial Symbolic Algebra
- Model Checking of WLAN IEEE 802.11 Authentication Protocol
- Design and Implementation of the model checker front-end system
- Sequential logic circuit of formal verification methods
- Formal Verification of Hybrid Systems and Its Application
- Study on the Application of Formal Verification
- High-Level Model Checking Using Wu’s Method
- Incremental SAT-based Formal Verification of Security Protocols
- Analyzing and Verifying Network Protocols by Model Checking