CSU55004 – Formal Verification

Module CodeCSU55004
Module Name Formal Verification
ECTS Weighting [1]5 ECTS
Semester TaughtSemester 1
Module Coordinator/s  Vasileios Koutavas

Module Learning Outcomes

On successful completion of this module, students will be able to:

  1. Have gained significant knowledge of mathematical logics (propositional and first order logic) and the Floyd/Hoare logic for software specification. These logics are the basis for software verification, and are a de facto standard in the verification industry;
  2. Demonstrate the current state-of-the-art in software verification technology, its range of applicability and theoretical limitations, and the necessary tasks required to overcome these limitations where possible;
  3. Create logic formulas to specify the correct behaviour of programs, including programs implementing well-known algorithms (e.g. binary search), new programs provided to them, and programs they write themselves to solve engineering problems;
  4. Use the state-of-the-art in software verification tools (e.g. Microsoft Dafny) to mechanically verify software correctness in a team setting;
  5. Create pencil-and-paper mathematical proofs to manually verify software correctness;
  6. Design programs that they can then verify correct.

Module Content

Specification languages and logics; axiomatic program semantics. Formal proof systems to verify software and system properties such as propositional, predicate and Hoare logic. Proofs by induction. Correctness proofs of functional and imperative programs.

Teaching and Learning Methods

Lectures, tutorials, individual assignments, projects.
Lectures will be split between presentation of new material and tutorial-style problem solving. Students will have the opportunity to practice the techniques learned in the module, and improve their skills by individual assignments and group project work.

Assessment will be through individual coursework, team project and annual examination.

Assessment Details

Assessment ComponentBrief Description Learning Outcomes Addressed% of TotalWeek SetWeek Due
Examination2 hour physical examinationLO1, LO2, LO3,
LO4, LO5
65%N/AN/A
Assignment 1Propositional LogicLO1, LO3, LO54%Week 3Week 4
Assignment 2First Order LogicLO1, LO3, LO54%Week 5Week 6
Assignment 3Hoare Logic/Software
Verification
LO1, LO2, LO3,
LO4, LO5
10%Week 6Week 8
Project Part 1Form a Team,
Write a Program
LO1, LO2, LO3,
LO4, LO5, LO6
2%Week 3Week 4
Project Part 2Give Formal Spec of Part 1LO1, LO2, LO3,
LO4, LO5, LO6
5%Week 4Week 8
Project Part 3Verify Spec of Part 2LO1, LO2, LO3,
LO4, LO5, LO6
10%Week 8Week 11

Reassessment Details

Examination 100%, 2 hour physical Examination.

Students must submit a meaningful attempt at least in one of the two assignment and two of the three project parts.

Contact Hours and Indicative Student Workload

Contact Hours (scheduled hours per student over full module), broken down by: 22 hours
Lecture22 hours
Laboratory0 hours
Tutorial or seminar0 hours
Other0 hours
Independent study (outside scheduled contact hours), broken down by:80  hours
Preparation for classes and review of material (including preparation for examination, if applicable)40 hours
Completion of assessments (including examination, if applicable)40 hours
Total Hours102 hours

Recommended Reading List

  • Main textbook: Logic in Computer Science: Modelling and Reasoning about Systems( 2nd Edition) by Michael Huth and Mark Ryan.
  • Lecture notes and handouts.

Module Pre-requisites

Prerequisite modules: N/A

Other/alternative non-module prerequisites: Maths and programming.

Module Co-requisites

N/A

Module Website

Blackboard