Set Theory Lecture 2 Flashcards

1
Q

What is a list in set theory?

A

An ordered sequence of elements.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Give an example of a list.

A

DigitList := ⟨0,1,2,…,9⟩.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

How does a list differ from a set?

A

A list is ordered and can contain duplicates, while a set is unordered and contains unique elements.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is a Cartesian product of two sets?

A

A × B := {⟨a,b⟩ | a ∈ A and b ∈ B}, the set of all ordered pairs from A and B.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Give an example of a Cartesian product.

A

{1,2} × {a,b} = {⟨1,a⟩, ⟨1,b⟩, ⟨2,a⟩, ⟨2,b⟩}.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is the Cartesian product of three sets?

A

A × B × C := {⟨a,b,c⟩ | a ∈ A, b ∈ B, c ∈ C}.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is the formula for the size of a Cartesian product?

A

(A × B) = #A · #B.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is the number of elements in Dates := DayNums × MonthNums if #DayNums=31 and #MonthNums=12?

A

Dates = 31 × 12 = 372.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is a relation in set theory?

A

A relation R is a subset of a Cartesian product of sets.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is a binary relation?

A

A relation of type A × B or A² within a set A.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Give an example of a binary relation.

A

IsBrotherOf := {⟨x, y⟩ | x is the brother of y} ⊆ People².

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is an alternative notation for binary relations?

A

Instead of ⟨x,y⟩ ∈ R, we can write x R y.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

How are relations represented visually?

A

Using directed graphs or matrices.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What does the matrix representation of a relation show?

A

It represents connections between elements as 1 (true) or 0 (false).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is the inverse of a relation R?

A

R⁻¹ := {⟨x, y⟩ | ⟨y, x⟩ ∈ R}.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Give an example of an inverse relation.

A

If LivesIn = {⟨Jan, Amsterdam⟩}, then (LivesIn)⁻¹ = {⟨Amsterdam, Jan⟩}.

17
Q

What does inverting a relation do in its graph representation?

A

It reverses the direction of all arrows.

18
Q

What is the composition of two relations R and S?

A

R ∘ S := {⟨x, z⟩ | there exists y such that x S y and y R z}.

19
Q

Give an example of relation composition.

A

IsFriendOf ∘ IsUncleOf = {⟨x, z⟩ | x is an uncle of a friend of z}.

20
Q

Why does order matter in relation composition?

A

Different orders of composition produce different results, e.g., IsMarriedTo ∘ IsParentOf ≠ IsParentOf ∘ IsMarriedTo.

21
Q

What is the associativity property of relation composition?

A

(R ∘ S) ∘ T = R ∘ (S ∘ T).

22
Q

What is the inverse of a composite relation?

A

(R ∘ S)⁻¹ = S⁻¹ ∘ R⁻¹.

23
Q

What is reflexivity in a relation?

A

A relation R is reflexive if for all x, x R x holds.

24
Q

What is symmetry in a relation?

A

A relation R is symmetric if for all x, y: x R y → y R x.

25
Q

What is transitivity in a relation?

A

A relation R is transitive if for all x, y, z: x R y and y R z → x R z.

26
Q

What is anti-symmetry in a relation?

A

A relation R is anti-symmetric if for all x, y: x R y → ¬(y R x).

27
Q

Is ‘IsFriendOf’ reflexive, transitive, symmetric, or anti-symmetric?

A

Symmetric but not necessarily reflexive, transitive, or anti-symmetric.

28
Q

Is ‘IsParentOf’ reflexive, transitive, symmetric, or anti-symmetric?

A

Transitive and anti-symmetric, but not reflexive or symmetric.

29
Q

Is ‘IsDescendantOf’ reflexive, transitive, symmetric, or anti-symmetric?

A

Transitive but not reflexive, symmetric, or anti-symmetric.

30
Q

What is the key takeaway from the lecture?

A

Understanding lists, Cartesian products, relations, relation composition, and properties like reflexivity, symmetry, transitivity, and anti-symmetry.