Skip to content
Lucas Bang edited this page Nov 9, 2022 · 53 revisions

Welcome to the HMC CS181 U materials wiki!

Lecture Slides

Assignments

Post-COVID Shutdown Stuff

Symbolic model checking

Symbolic model checking bonus reading

This was going to be the assignment for this reading:

At this point in the course, you have familiarity with modeling reactive systems with transition diagrams, specifying properties using temporal logic, the CTL and LTL model checking algorithms, and, most recently, symbolic model checking and binary decision diagrams. With this background in mind, read the paper Model Checking: Historical Perspective and Example, by Ed Clarke and Sergey Berezin.

(While not required, if you are interested to look at the original SMV specification referred to in the paper, it is provided. In addition, the original NASA technical report detailing an earlier analysis of the Space Shuttle guidance system is also provided.

Write a response to this paper that summarizes what you think are the most important points and include your own thoughts or questions. I am expecting approximately 250 words and not more than 500 words.

Modeling a Queue

Here is an assignment on modeling a Queue using temporal logic.

LTL Model Checking Problems

Model Checking Reading

Symbolic Execution and DPLL

The next topic of the course was to be Symbolic Execution, and I was planning to have us all implement a small symbolic execution tool using Z3 to automatically generate tests for programs. Symbolic execution is closely related to DPLL, and also relies heavily on automated theorem proves and satisfiability checking.

This is a great video that covers the basics of symbolic execution, but also covers how the DPLL algorithm that we learned earlier in the semester can be lifted up to handle more complex formulas over not just booleans, but integers, arrays, strings, and so on.

Additional Lectures on Symbolic Execution

Some random problems

Here are a few more problems, that might have shown up in an exam perhaps, or as HW, that you can take a look at.

Reasoning about Knowledge using Modal Logic

This is something that I would love to cover in this class. It was a topic that I was going to throw in if we had time, or offer it as a possible final presentation option.

Basically, instead of thinking about a transition in a transition system as leading to another "state", you can think of transitions as connecting "parallel worlds" that represent possible ways that things might actually be in the current world. Rather than thinking about temporality (time), we think about necessity and possibility, but using very similar reasoning to that of model checking. Roughly, instead of temporal logic, we use modal logic.

Some of the funnest parts have to do with agents reasoning about what other agents know. This book has a logic for formalizing statements like "they don't know that we know they know!"

Here are some chapters. The whole book is available online from the Honnold Mudd Library.