Final Exam Flashcards
What is the disjoint union ⊔?
Is the union of A and B when A ∩ B = ∅. i.e. A and B are disjoint.
What is the output of the Euclidean Algorithm?
the gcd
What is the gcd?
If m and n are non-zero integers, then the largest integer which is a common divisor of both m and n is called the greatest common divisor of m and n.
Define integer division.
The integer d is said to divide the integer a if
a = d . t for some integer t.
d is a divisor of a
a is a multiple of d
Define common divisor.
d is said to be the common divisor of integer m and n if d | m and d | n
Informal defenition of sets.
A set is a collection of objects. The objects of a set are called the elements of the set.
Define the extensionality principal.
Two sets are equal iff they have the same elements.
i.e. S = T iff x ∈ S implies x ∈ T and x ∈ T implies x ∈ S
Define subset.
A set T is a subset of a set S if every element of T is also an element of S.
Define proper subset. Give the symbol.
T is a proper subset of S if T is a subset of S and T is not equal to S.
⊊
What does it mean to say two sets A and B are disjoint?
A ∩ B = ∅
What is the notation for the set theoretic difference?
A \ B
What is a set?
A set is determined completely by its elements.
What is the null set?
A set with no elements
Give the 5 logical laws of sets.
x ∈ A ∪ B iff x ∈ A or x ∈ B.
x ∈ A ∩ B iff x ∈ A and x ∈ B.
x ∈ A \ B iff x ∈ A and x ∉ B.
A ⊂ B iff x ∈ A implies x ∈ B.
A = B iff x ∈ A implies x ∈ B and x ∈ B implies x ∈ A
What is the notation for restricted comprehension?
{x ∈ S | c(x)} ⊆ S
What is unrestricted comprehension, why is this a problem?
This is when we drop the requirement that x ∈ S. This leads to problems as Ω := {x | x is a set not containing itself} tells us that Ω ∈ Ω and Ω ∉ Ω which is a contradiction. The element Ω cannot be both in the set and out of it.
What rule prevents unrestricted comprehension?
Axiomatic Rules for Set Theory. A set cannot be an element of itself. x ∉ x always.
What is U?
The ambient set containing all possibilities. So for every A ⊂ U, we can define A^c = U \ A.
What is a proposition?
Is a declarative sentence that is either true or false.
What is the symbol for XOR?
⊕
Define logical equivalence.
Two compound propositions are logically equivalent if their equivalence is a tautology under all possible assignments of truth values to their prime propositions.
What are the two absorption laws?
(P ^ Q) v Q = Q
(P v Q) ^ Q = Q
What is the role for the part P and the part Q in P implies Q.
P is the hypothesis
Q is the conclusion
What is the equivalence law?
P <-> Q = (P -> Q) ^ (Q -> P)
What is the converse of P -> Q?
Q -> P
What is a Mersenne Prime?
A prime of the form (2^n) - 1
What is iff? Split it in two and give the names of each part.
If and only if is an equivalence relation.
Hence P <-> Q is the same as
P -> Q ^ Q->P
P -> Q is the ONLY IF part and means it is NECESSARY that Q is true for P to be true.
Q -> P is the IF part and means it is SUFFICIENT that Q is true for P.
Create a predicate to represent the fact that the square of any real number is non-negative.
∀x ∈ R : x^2 >= 0
Create a predicate to represent the fact that 16 is a square integer.
∃n ∈ Z : n^2 = 16
What is the truth set of P (on S)?
{x ∈ S | P(x) }
All the elements of S that satisfy the predicate P.