Lectures

This page gives highlights of past lectures and provides lecture notes, reading assignments, and exercises.


Dates Topics and Readings Exercises
Jan 25

Course introduction and administration. Introduction to Logic.


Required Readings:
  • Syllabus
  • Introduction slides [pdf] (revised)
  • Chapter 1 of the textbook
Recommended Material:
  • Moshe Vardi. From Aristotle to the iPhone [talk]
Jan 27
Jan 29

Introduction to propositional logic. Syntax and semantics. Parsing and precedence. Interpretations. Formula satisfiability, validity, and equivalence. Formula simplification via rewriting. Evaluation of formulas in an interpretation.


Required Readings:
  • Propositional Logic slides [pdf] (revised)
  • Chapter 2, Sections 1-3, 5 of the textbook
Recommended Readings:
  • Textbook appendix on set theory (as needed)
Feb 1

From English to propositional logic. Motivation and issues. Translation heuristics. The Principle of Maximal Logical Revelation. Examples.


Required Readings:
  • From English to PL slides [pdf]
Exercise in slides
Feb 3
Feb 5

Propositional satisfiability. Truth tables method. Splitting algorithm. Examples.
Improving the performance of the splitting algorithm. Subformula polarity and pure literals. Conjunctive Normal Form and conversion to CNF. Motivation and conversion examples.


Required Readings:
  • Propositional satisfiability slides [pdf]
  • CNF and DPLL slides [pdf]
  • Chapter 2, Sections 1-4 of the textbook
Exercises in slides
Feb 8

Conversion to clause form: a space efficient CNF transformation. Unit propagation. The DPLL procedure, basic version. DPLL improvements: tautology and pure literal elimination, Horn case.

Required Readings:

  • CNF and DPLL slides [pdf] (revised)
  • Chapter 6, Sections 1-4 of the textbook

Exercises in slides
Feb 10

Encoding cardinality constraints in PL. Reducing puzzle solving to SAT solving. Examples: Sudoko, Loop the Loop.

Semantic Tableaux. Solving procedure and examples.

Required Readings:

  • Semantic Tableaux slides [pdf]
  • Chapter 2, Section 6 of the textbook

Exercise in slides
Feb 12

More on semantic tableaux. Properties of tableaux.

Introduction to Binary Decision Diagrams. Binary decision trees.

Required Readings:

  • Semantic Tableaux slides [pdf] (revised)
  • Binary Decision diagrams slides [pdf]
  • Chapter 2, Section 7 of the textbook
  • Chapter 5, Sections 1-2 of the textbook

Exercise in slides
Feb 15
Feb 17
Feb 19

From binary decision trees to binary decision diagrams (BDDs). Reduced BDDs. Ordered BDDs. Applying logical operators to OBDDs. Examples and exercises.

Required Readings:

  • Binary Decision diagrams slides [pdf] (revised)
  • Chapter 5, Sections 1-5 of the textbook

Exercise in slides
Feb 22
Feb 24
Feb 26

More on combining OBDDs. Examples.

Satisfiability and randomization. k-SAT problem vs SAT-problem. Random clause generation. Probability of generating an unsatisfiable clause set. The sharp phase transition of k-SAT problems. Local search algorithms. Random walk algorithms.

Required Readings:

  • Satisfiability and Randomization slides [pdf]
  • Chapter on Satisfiability and Randomization in KT&V. [pdf] (UI access only)

Mar 1

Semantic consequence/entailment. Examples. Inference Systems for Propositional Logic. Derivability. Relationship between derivability and entailment. Soundness and completeness.

Required Readings:

  • Inference systems slides [pdf]

Entailment exercise in slides
Mar 3

Midterm exam I

Mar 5

Natural deduction. Inferences rules. Examples of derivations.

Required Readings:

Mar 8
Mar 10
Mar 12

More natural deduction rules. Derived rules. Examples of derivations.
In-class exercises on natural deduction proofs.
Proofs of soundness and completeness of natural deduction.

Required Readings:

  • Inference systems slides [pdf] (revised Mar 14) &
  • Exercises [pdf]

Mar 15
Mar 17
Mar 19

More on the proof of completeness for natural deduction.

Introduction to quantified Boolean formulas. Game-theoretic view. Syntax and semantics. Free and bound variables. Prenex form. The splitting algorithm for satisfiability checking.

Required Readings:

  • Inference systems slides [pdf] (revised Mar 15)
  • Chapter 1 of Huth & Ryan (UI access only)
  • QBF slides [pdf] (revised Mar 17)
  • Chapter on Quantified Boolean Formulas in KT&V (UI access only)

Mar 22
Mar 24

More on QBFs. The splitting algorithm CNF for QBEs. DPLL for QBF. DPLL improvements (pure literal rule, universal literal deletion).

QBEs and BDDs. Quantification for OBDDs.

Required Readings:

  • QBF slides [pdf] (revised Mar 22)
  • Chapter on Quantified Boolean Formulas in KT&V (UI access only) (revised Mar 21)

Mar 29
March 31

Logic and modeling. State-changing systems. Propositional logic of finite domains (PLFD). PLFD and propositional logic. A tableau system for PLFD. Example tableau proof.

Encoding PLFD problems in SMT-LIB and solving them with the CVC4 solver.

Required Readings:

  • PLFD slides [pdf]
  • Chapter on PLFD in KT&V (UI access only) (revised Mar 30)

Apr 2

State-changing systems. Labelled Transition Systems. Representing states symbolically. Examples.

Required Readings:

  • Transition systems slides [pdf]
  • Chapter on transition systems in KT&V (UI access only) (rev. April 3)

Apr 5

No class

Apr 7

Midterm exam II

Apr 9

More on State-changing systems. Symbolic representation of transitions. Examples.

Required Readings:

  • Transition systems slides [pdf] (revised Apr 10)
  • Chapter on transition systems in KT&V (UI access only) (rev. April 3)

Apr 12

Introduction to Linear Temporal Logic. Computation trees. Expressing temporal properties of transition systems with LTL formulas.

Required Readings:

  • LTL slides [pdf] (revised Apr 16)
  • Chapter on Linear Temporal Logic in KT&V (UI access only) (rev. April 14)

Apr 14

No class. Instructional break

Apr 16

More on Linear Temporal Logic. Expressing temporal properties of paths with LTL formulas. Examples.

Required Readings:

  • LTL slides [pdf] (revised Apr 16)
  • Chapter on Linear Temporal Logic in KT&V (UI access only) (rev. April 14)

Apr 19
Apr 21
Apr 23

Formula equivalence in LTL. Noteworthy equivalences. Modeling systems as transition systems and expressing their properties with LTL formulas. Motivation and examples.

Required Readings:

  • LTL slides [pdf] (revised Apr 23)
  • Chapter on Linear Temporal Logic in KT&V (UI access only) (rev. April 23)

Apr 26
Apr 28
Apr 30

Model Checking Problem. Safety Properties and Reachability. Symbolic Reachability Checking. Forward and backward reachability. Examples.

Introduction to First-order Logic. Motivation. Syntax and semantics.

Required Readings:

  • Model Checking slides [pdf] (revised Apr 28)
  • First-order Logic slides [pdf]
  • Sections 2.1,2.2,2.4 of Huth & Ryan on Predicate Logic (UI access only)

May 3
May 5
May 7

More on First-order Logic. Quantifiers and qualified quantifiers. Properties of quantifier. From English to FOL and from FOL to English. Examples.

The natural deduction calculus for FOL. Rules and example proofs. Soundness and completeness. Undecidability of validity in FOL.

Required Readings:

  • First-order Logic slides [pdf] (revised May 7)
  • Sections 2.1-2.5 of Huth & Ryan (UI access only)

Recommended Readings:

May 11  

Final exam

 

Copyright: Cesare Tinelli, The University of Iowa, 2021