CS477 Program Verification

Spring 2010

Time: Tuesday and Thursday, 9:30-10:45

Place: 1131 Siebel Center

Professor: José Meseguer

Office Hours: after class

News

May 6: Takehome Final Posted - Deadline: 4pm on May 11

If you have questions for any of the tools send e-mail to Ralf Sasse. Do so by 24 hours before the deadline, or risk not getting any answer.

Final as PDF

Q1: In problem 1, it is helpful to comment out the Multiset sort and the operations involving it for proving the first of the two goals. This should avoid many of the spurious errors generated by the ITP as well as make the proof go through easier. For the second goal obviously everything related to the Multiset sort needs to be active again.

Q1: INSERT-SORT-VERIFICATION Maude module for question 1

Q2: MAXNML Maude module with Maude2.1.1 and Java+ITP for question 2

Q3: CRChC 3 with Maude92a and Full Maude 2.4o packaged as TGZ This is only for Linux64 and (maybe!) for MacOSX. You have access to csil-linux-ts1.cs.uiuc.edu which runs Linux64 and can run it there. You may want to use the more up to date version of the tool found on the tool specific website, see next line below.

Q3: CRChC 3 tool website for documentation

Q3: Unordered Channel Maude module for question 4

Q4: ThreadGame Java file for use with JavaRL for question 5

Q5: Pipeline Java file for use with JavaRL for question 6

Q6: No extra information or downloadables at this time.

Apr. 19: Homework 6 Posted

Homework 6 as PDF

DIN-PHIL Maude module

Apr. 19: Slides for Apr. 27

JavaRL talk slides as PPT

JavaRL talk demo files

Link to JavaRL tool

Mar. 17: Homework 5 Posted

Homework 5 as PDF

CARD Maude module

TREE Maude module

Java+ITP with Maude 2.1.1 and the files for exercises 3 and 4. Find Maude 2.1.1 at /home/class/sp10/cs477/lib/maude-2.1.1 on the csil machines.

Mar. 02: Homework 4 Posted

Homework 4 as PDF

ACK Maude module

LIST Maude module

LIST1 Maude module

LIST-of-NAT Maude module

LIST-of-NAT Goal ITP module

ADDED Mar. 10: The instructions for the use of MTT1.5 have been updated at the mtt1.5 information page.

Feb. 12: Homework 3 Posted

Homework 3 as PDF

NAT-MSET-MIN Maude module

QIDLIST Maude module

QIDMSET Maude module

Jan. 21: Homework 1 and 2 and Set Theory Notes Posted

Homework 1 as PDF

Homework 2 as PDF

Set Theory Notes as PDF

Lecture Notes by Peter Ölveczky

Overview

Examines formal methods for demonstrating correctness and other properties of programs; includes an overview of predicate calculus. Topics include: invariant assertions, Hoare axiomatics, well-founded orderings for proving termination, structural induction, computational induction, data structures, and parallel programs.

Requirements

  1. Participation
  2. Readings and automated deduction experiments
  3. Homeworks
  4. Take-home final exam
  5. For 1 unit, project or paper to be arranged with instructor

Texts

Software

All of the software used in this course is based on Maude, a reflective programming language based on term rewriting. In addition to Maude itself, we will use several tools written in Maude. In order to make things simpler for students, all of the software used in this course is installed on the CSIL Linux machines. If you prefer, you can also download and install the software on a PC.

Maude 2.3
on csil machines at /home/class/fa08/cs476/bin/maude and also available for download.
Full Maude 2.3b
Full Maude is required for other tools below. It is installed on csil machines at /home/class/fa08/cs476/lib/maude-2.3/full-maude.maude and also available for download. If it is placed in the same directory as the maude executable (as it is on the csil machines), then it may be loaded by typing “load full-maude” within Maude.
Maude Termination Tool (MTT)
Installed on the CSIL machines with instructions available from here.
Maude Church-Rosser Checker (CRC)
Requires Full Maude. It is installed on csil machines at /home/class/fa08/cs476/lib/maude-2.3/crchc2a.maude and also available for download. If it is placed in the same directory as the maude executable (as it is on the csil machines), then it may be loaded by typing “load crchc2a” within Maude after loading Full Maude.
Maude Coherence Checker (ChC)
Bundled with the Maude Church-Rosser checker, and may be loaded the same way.
Maude Sufficient Completeness Checker
This tool requires a special version of Maude 2.3 with extensions to the CETA library. These extensions are included in the version of Maude is installed on the CSIL machines at /home/class/fa08/cs476/bin/maude. Otherwise, you must download the executable from the website. Once you have the proper Maude version, download scc.maude. After installing this file into the same directory as the Maude executable, load the module you with to check, type “load scc” to load the scc, and type “(scc ModuleName .)” to check the module with the given name . See the tool website for more detailed instructions. Note that the SCC tool uses core Maude modules — not Full Maude modules. You need to remove the parenthesis around Maude modules before loading them.
Maude Inductive Theorem Prover (course version)
This tool can be used to prove inductive theorems about a equational specification. The version on the tool's website is different than the one used for this course which is listed below. Documentation is available in the course lecture notes for lecture 12 and in a Adobe pdf including in the download. The examples for lecture 12 are also available in the archive. The ITP should be used with Maude 2.3 or a more recent version.
Rewriting Logic Semantics of Java : JavaRL
Please see homepage for more details.

Homework Policy

All the assignments should be solved by each student individually. Although it is of course allowable to discuss contents of the course among students, such discussions should not include approaches to solve homework problems. Any such collaboration in homework would constitute a violation of the university's academic integrity.

Lecture Notes

No Date Last Updated Slides
1 01/19/26 01/21/10 lec01_jan_19.pdf
2 01/21/26 01/21/10 lec02_jan_21.pdf
2.1.jpg 2.4.jpg
2.2.jpg 2.5.jpg
2.3.jpg
3 01/26/26 01/26/10 lec03_jan_26.pdf
4 01/28/26 01/26/10 lec04_jan_28.pdf
5 02/02/26 02/02/10 lec05_feb_02.pdf
6 02/04/26 02/04/10 lec06_feb_04.pdf
7 02/09/26 02/08/10 lec07_feb_09.pdf
8 02/11/26 02/11/10 lec08_feb_11.pdf
9 02/16/26 02/15/10 lec09_feb_16.pdf
10 02/18/26 02/15/10 lec10_feb_18.pdf
11 02/23/26 02/19/10 lec11_feb_23.pdf
12 02/25/26 02/19/10 lec12_feb_25.pdf
13 03/02/26 02/19/10 lec13_mar_02.pdf
14 03/04/26 02/19/10 lec14_mar_04.pdf
15 03/09/26 02/19/10 lec15_mar_09.pdf
16 03/11/26 02/19/10 lec16_mar_11.pdf
17 03/16/26 02/19/10 lec17_mar_16.pdf
18 03/18/26 02/19/10 lec18_mar_18.pdf
19 03/30/26 03/18/10 lec19_mar_30.pdf
20 04/01/26 03/31/10 lec20_apr_01.pdf
21 04/06/26 03/31/10 lec21_apr_06.pdf
22 04/08/26 03/31/10 lec22_apr_08.pdf
23 04/13/26 04/03/10 lec23_apr_13.pdf
24 04/15/26 04/03/10 lec24_apr_15.pdf
25 04/20/26 04/19/10 lec25_apr_20.pdf
26 04/22/26 04/19/10 lec26_apr_22.pdf
28 04/29/26 04/29/10 lec28_apr_29.pdf
29 05/04/26 05/03/10 lec29_may_04.pdf