Week 2 - Logic and Set Theory Lecture Notes - Shorter
Week 2 - Logic and Set Theory Lecture Notes - Shorter
Week 2 - Logic and Set Theory Lecture Notes - Shorter
STATEMENT
A statement is a declarative sentence that is either true or false, but not both true and false.
Example:
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
SIMPLE STATEMENT
A simple statement is a statement that conveys a single idea.
Example:
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
COMPOUND STATEMENT
A compound statement is a statement that conveys two or more ideas. Connecting simple
statements with words and phrases such as and, or, if . . . then, and if and only if creates a
compound statement.
Example:
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
NEGATION OF STATEMENT
The negation of a statement is the opposite of the given mathematical statement.
Example:
1. 3 is a prime number. ______________________________________
2. Today is Thursday ______________________________________
𝑝: Today is Friday
𝑞: It is raining
𝑟: I am going to a movie
𝑠: I am not going to the basketball game.
a. 𝑞 ∧ 𝑝 _________________________________________________________________
b. 𝑠 ↔∽ 𝑝 ________________________________________________________________
- The converse of 𝑝 → 𝑞 is 𝑞 → 𝑝.
- The inverse of 𝑝 → 𝑞 is ~𝑝 → ~𝑞.
- The contrapositive of 𝑝 → 𝑞 is ~𝑞 → ~𝑝.
Converse: _____________________________________________________________________
Inverse: ______________________________________________________________________
Contrapositive: ________________________________________________________________
SET
A set is a collection of things, in any order. Sets are usually identified with capital letters to
keep them distinct from variables in algebra, which are usually small letters.
For example, let 𝐴 be the set of the primary colors. Thus,
Examples:
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
ELEMENTS
The things contained in a set are called elements (also known as members). Consider the
set 𝐴 above, blue is an element of set 𝐴. You can write this statement using the symbol ∈,
which means “is an element of”:
𝑏𝑙𝑢𝑒 ∈ 𝐴
Note that green is not an element of 𝐴. Thus, we can write this statement using the
symbol ∉, which means “is not an element of”:
𝑔𝑟𝑒𝑒𝑛 ∉ 𝐴
Examples:
______________________________________________________________________________
______________________________________________________________________________
CARDINALITY OF SETS
The cardinality of a set is just a fancy word for the number of elements in that set.
For example, set 𝐴 = {𝑏𝑙𝑢𝑒, 𝑦𝑒𝑙𝑙𝑜𝑤, 𝑟𝑒𝑑} has 3 elements, so the cardinality of 𝐴 is 3.
Examples:
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
SUBSETS
When all the elements of one set are completely contained in a second set, the first set is a
subset of the second. For example, consider these sets:
Example: Consider the following sets:
𝐻 = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10}
𝐽 = {2, 4, 6, 8, 10}
Since every element of 𝐽 is also an element of 𝐻, then 𝐽 is a subset of 𝐻. Thus, we can write
this statement as
𝐽⊂𝐻
Examples:
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
Examples:
______________________________________________________________________________
______________________________________________________________________________
𝑃 ={}
UNIVERSAL SET
It is the set of all elements that are being considered. The letter U is used to denote the
universal set.
𝐷 = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10}
𝐸 = {0, 2, 4, 6, 8}
𝐹 = {1, 3, 5, 7}
𝐴 ∪ 𝐵 = { 𝑥 | 𝑥 ∈ 𝐴 𝑜𝑟 𝑥 ∈ 𝐵}
Example:
𝐸 ∪ 𝐹 = {0, 2, 4, 6, 8, } ∪ {1, 3, 5, 7}
= {0, 1, 2, 3, 4, 5, 6, 7, 8}
Exercise:
1. ________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
2. ________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
𝐴 ∩ 𝐵 = { 𝑥 | 𝑥 ∈ 𝐴 𝑎𝑛𝑑 𝑥 ∈ 𝐵}
Example:
= {2, 4, 6, 8}
Exercise:
1. ________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
2. ________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
Exercise:
1. ________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
2. ________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
The Venn diagram in figure above shows the four regions formed by two intersecting sets
in a universal set 𝑈. It shows the four possible relationships that can exist between an
element of a universal set 𝑈 and two sets 𝐴 and 𝐵.
An element of 𝑈:
may be an element of both 𝐴 and 𝐵 Region i
may be an element of 𝐴, but not 𝐵 Region ii
may be an element of 𝐵, but not 𝐴 Region iii
may not be an element of either 𝐴 or 𝐵 Region iv
Examples:
1. In a school, there are 30 teachers who teach Mathematics or Physics. Of these, 18 teach
Mathematics and 6 teach both Physics and Mathematics. How many teach Physics only?
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________