COMP 1002 Unit 3 overview

In Unit 3, we expand our language of logic to be able to talk about scenarios involving numbers, people and other domains. We start with the notion of a predicate (hence the name "predicate logic", which is a "proposition with parameters" such as Even(x) which may be true or false depending on the value of the number x from some domain of numbers. In predicate logic, in addition to logical connectives such as ∧ ∨ ¬, we introduce quantifiers, which would allow us to say whether the formula is true no matter what values from the domain its parameters (free variables) tak (universal quantifier), as well as whether there is some value of the parameters which makes the formula true (existential quantifier). We then discuss at length how to construct such formulas to express, in particular, database queries, how to evaluate them, and how to negate them. We will also review basic concepts about sets.

Readings

Section 2.1 (up to p.118), Sections 1.4, 1.5

Learning objectives

The focus of this unit is the language of predicate logic. Thus, you will learn to

Vocabulary

You need to know the meaning of the following terminology: