CS 245 plays a key role in the development of mathematical skills required in the Computer Science program, and thus complements MATH 135 (Algebra), MATH 239 (Graph Theory and Enumeration), and STAT 230 (Probability). The course covers a variety of topics related to "logic and computation" that are required as background for other courses in Computer Science. It differs both in tone and content from a "logic" course one would typically find in a mathematics program. The course aims to:
At the end of the course, students should be able to:
Students registered in the course may log into Quest to view their lecture and tutorial meet times.
If you wish to register or to change sections, either use Quest or contact a Computer Science academic advisor. The instructors and course coordinator do not support course registrations.
Please note that this schedule is provisional.
Each tutorial will provide a forum for you to practice with the ideas and techniques presented in the preceding lectures. The following assignment allows further practice and feedback. Each assignment will focus on the recent topics, but includes everything that came before, as well — everything is cumulative.
The Midterm Exam will cover the material up to the end of Week #5.
There will be a Final Exam during the university's final exam period, which will cover the entire course.
Week | Lectures | Tutorials | Assessments | References | |
---|---|---|---|---|---|
Tuesday | Thursday | Friday | |||
#1: 05/05–05/09 |
What is logic? Logic propositions and connectives. | Truth tables; translations between English and propositional logic; propositional logic syntax; review of induction. | Translations; propositional syntax; induction |
|
|
#2: 05/12–05/16 |
Structural induction; propositional semantics; satisfiability. | Proving arguments valid in propositional logic. | Structural induction; propositional logic semantics; argument validity. |
|
|
#3: 05/19–05/23 |
Propositional calculus laws; Disjunctive and Conjunctive Normal Forms. | Adequate set of connectives; Boolean algebra; logic gates; circuit design and minimization. | Disjunctive and Conjunctive Normal Forms; adequate sets; boolean algebra; logic gates; circuit design; code analysis and simplification. |
|
|
#4: 05/26–05/30 |
Formal deduction for propositional logic: introduction. | Formal deduction for propositional logic: more examples. | Formal deduction for propositional logic. |
|
|
#5: 06/02–06/06 |
Soundness and completeness of formal deduction for propositional logic (proof of completeness optional). | Automated theorem-proving: resolution, Davis-Putnam Procedure (proof of soundess and completeness of DPP: optional). | Soundness and completeness of formal deduction; resolution for propositional logic; DPP. |
|
|
#6: 06/09–06/13 |
First-order logic: domain, terms, relations, variables, quantifiers. Translations from English to first-order logic. |
No lecture — prepare for Midterm | Introduction to first-order logic. |
|
|
#7: 06/16–06/20 |
First-order logic syntax and semantics. | Logical consequence in first-order logic. | Syntax and semantics for first-order logic; logical Consequence in first-order logic. |
|
|
#8: 06/23–06/27 |
Formal deduction in first-order logic. | Formal deduction in first-order logic: proof examples. | Formal deduction for first-order logic. |
|
|
#9: 06/30–07/04 |
Canada Day | Resolution for first-order logic: Prenex Normal Form, Existential-free PNF, unification and resolution, automated theorem provers/verifiers. | Resolution for first-order logic. |
|
|
#10: 07/07–07/11 |
Computation and logic: Turing machines, decidability, undecidability, the halting problem, the satisfiability problem. | Computation and logic: Turing machines, decidability, undecidability, computability, incomputability. | Turing machines; decidability; undecidability. |
|
Logic16 |
#11: 07/14–07/18 |
Proving decision problems undecidable by reduction. | Proving theorems in Peano arithmetic; Gödel's incompleteness theorem. | Decision problems; Peano arithmetic; Gödel's incompleteness theorem. |
|
|
#12: 07/21–07/25 |
Program verification: Hoare triples, partial and total correctness, rules for assignment, implication, composition. | Program verification: conditional statements. | Program verification. |
|
Logic20 |
#13: 07/28–07/30 |
Program Verification: partial-while; Program termination; Undecidability of Partial and Total Correctness; Course Review. |
|
Logic20 |
For questions concerning course material, please join us during our scheduled office hours. Office hours will start in the second week of classes. Times listed below are in Eastern Time. Note whether specific office hours are on campus or online; and refer to LEARN on how to connect to online office hours. For administrative questions, contact the coordinator, Dalibor Dvorski, by email: ddvorski@uwaterloo.ca.
Notes:
Lecture slides for the course are available electronically on LEARN.
There is no required textbook for this course. The textbook [Lu] referenced in the Schedule section is Mathematical Logic for Computer Science, second edition, by Lu Zhongwan. Students may access an electronic version of the textbook through the library. Please note that this book does not cover all the material presented in the course, and is meant mainly for definitions, notation, and the sections on formal deduction. Students should use the lecture slides as the main reference for the course.