This is an old revision of the document!
Table of Contents
Software Specification and Verification, Fall 2021
This is an introductory course on formal software specification and verification, covering various formalisms, methods, and tools for specifying the properties of a software program and for verifying that the program meets its specification. Its goal is to acquaint the students with fundamentals of formal software verification and to prepare them for conducting research in the area. We will focus on deductive (theorem proving) methods. A separate, complementary course entitled “Automatic Verification” covers algorithmic (model checking) methods.
Announcements
- 11/17: slides for Hoare Logic (II): Procedures available.
- 11/10: slides for Predicate Transformers available.
- 11/03: slides for Soundness and Completeness of Hoare Logic available.
- 10/27: slides for Hoare Logic (I) and two notes available.
- 10/13: slides and a note for Coq available.
- 09/22: slides for Course Introduction, Propositional Logic, and First-Order Logic and a note on Natural Deduction available.
- 09/20: this website created to complement the NTU COOL site for this course.
Instructor
Yih-Kuen Tsay (蔡益坤), NTU IM Dept., 3366-1189, Xtsay@im.ntu.edu.twX (between the enclosing pair of X's)
Lectures
Wednesday 2:20-5:20PM, Room 203, Management Building 2
Office Hours
Tuesday 1:30~2:00PM, Wednesday 1:30~2:00PM, or by appointment, Room 1108, Management Building 2.
TAs
Wei-Cheng Liu (劉韋成), Xr09725026@ntu.edu.twX
(between the enclosing pair of X's).
Jack Su (蘇俊杰), Xr09725002@ntu.edu.twX
(between the enclosing pair of X's).
Prerequisites
Computer Programming and Discrete Mathematics
Textbook
Class Notes and Selected Readings
Syllabus/Schedule (with links to slides/notes)
We shall seek to strike a balance between depth and breadth, covering both the foundations and some of the more successful formalisms, techniques, and tools. Below is a tentative list of topics and their schedule:
- Introduction: Reasoning about Programs (.5 week: 09/22a) [slides]
- Fundamentals: Propositional and First-Order Logics (2.5 weeks: 09/22b, 09/29, 10/06) [slides:Propositional Logic, First-Order Logic; notes: Natural Deduction]
- Verification Tools: Coq (2 weeks: 10/13, 10/20) [slides; notes:Tactics for Natural Deduction in Coq]
- Hoare Logic (I): Sequential Programs (2 weeks: 10/27, 11/03) [slides:Hoare Logic, Soundess and Completeness; notes: Rules of Hoare Logic, Proofs with Hoare Logic]
- Predicate Transformers (1 week: 11/10) [slides]
- Hoare Logic (II): Procedures (1 week: 11/17) [slides]
- Verification Tools: Frama-C + Plugins (2 weeks: 11/24, 12/01) [slides]
- Concurrent, Reactive Systems: Owicki-Gries Method (1 week: 12/08) [slides]
- Concurrent, Reactive Systems: UNITY and Linear Temporal Logic (1 week: 12/15) [slides: UNITY,Temporal Verification]
- Selected Topics: Modular/Compositional Reasoning (1 week: 12/22) [slides]
- Selected Topics: Separation Logic (1 week: 12/29) [slides]
- Final Exam (2022/01/05)
- Broader Picture: An Overview of Formal Methods (1 week: 01/12) [slides]
- Wrap-Up Discussions (1 week: 01/19)
Grading
Homework Assignments 20%, Participation 10%, Final Exam 40%, Term Paper/Report 30%.
References
- Logic for Computer Science: Foundations of Automatic Theorem Proving, J.H. Gallier, Harper & Row Publishers, 1985. (Note: click on the link to author's free download site.)
- Proof Theory and Automated Deduction, J. Goubault-Larrecq and I. Mackie, Kluwer Academic Publishers, 1997.
- Logic in Computer Science: Modelling and Reasoning about Systems, M. Huth and M. Ryan, Cambridge University Press, 2004.
- Foundations for Programming Languages, J.C. Mitchell, The MIT Press, 1996.
- Formal Syntax and Semantics of Programming Languages, K. Slonneger and B.L. Kurtz, Addison-Wesley, 1995.
- Verification of Sequential and Concurrent Programs, 2nd Edition, K.R. Apt and E.-R. Olderog, Springer-Verlag, 1997.
- The Science of Programming, D. Gries, Springer-Verlag, 1981.
- Predicate Calculus and Program Semantics, E.W. Dijkstra and C.S. Scholten, Springer-Verlag, 1990.
- Programming from Specifications, 2nd Edition, C. Morgan, 1994.
- Introduction to C program proof with Frama-C and its WP plugin, Allan Blanchard, 2020.
- Software Foundations, B.C. Pierce, C. Casinghino, M. Greenberg, V. Sjöberg, and B. Yorgey. (Note: click on the link to authors' free download site.)
- Certified Programming with Dependent Types , A. Chilipala. (Note: click on the link to author's free download site.)
- The Z Notation: A Reference Manual, 2nd Edition, J.M. Spivey, 1992. (Note: click on the link to author's free download site.)
- Software Engineering with B, J.B. Wordsworth, Addison-Wesley, 1996.
- Modeling in Event-B: System and Software Engineering, J.-R. Abrial, Cambridge University Press, 2010.
- The Temporal Logic of Reactive and Concurrent Systems: Specification, Z. Manna and A. Pnueli, Springer-Verlag, 1992.
- Temporal Verification of Reactive Systems: Safety, Z. Manna and A. Pnueli, Springer, 1995.
- Temporal Verification of Reactive Systems: Progress, Z. Manna and A. Pnueli, Book Draft, 1996. (Note: click on the link to authors' free download site.)
- Specifying Systems: The TLA+ Language and Tools for Hardware and Software Engineers, L. Lamport, Addison-Wesley, 2003.
- Parallel Program Design: A Foundation, K.M. Chandy and J. Misra, Addison-Wesley, 1988.
- A Discipline of Multiprogramming: Programming Theory for Distributed Applications, J. Misra, Springer, 2001
- Beauty Is Our Business: A Birthday Salute to Edsger W. Dijkstra, Edited by W.H.J. Feijen, A.J.M. van Gasteren, D. Gries, and J. Misra, Springer-Verlag, 1990
- The Formal Methods Page: http://formalmethods.wikia.com/wiki/Formal_methods, J. Bowen. (Note: this Web portal provides links to numerous formal methods and tools.)