1 - Set Theory

Homework 1. Reading 1.

What are sets?

A set is a collection of objects called elements. You can list a set like this:

S={1,2,3}

5S means that 5 belongs to set S. You can also write 1,2,3S.

x y means that x is not a set of y

The order of a set does not matter

Sets are made up of unique elements. If there are duplicates within a set, ignore them. Thus {1,2,3,1} is the same set as {1,2,3}. The two sets are equal because they have the same elements.

Sets can have numbers, but also letters, symbols etc.

N is the set of natural numbers. (All nonzero positive integers)

Z is commonly used to represent the set of all integers.

Q = rational numbers

R = real numbers

C = complex numbers

You can write a set many different ways

For the set of even integers could be written as:

{...,4,2,0,2,4,}

or as

2x:xZ

We read the colon as “such that,” so the above is read as “the set of elements of the form 2x such that x is an integer. Or 2x where x belongs to the natural set of integers. Writing sets with a colon is called set-builder notation

{xZ:x is an even integer} or {x : x=2y for some y ∈ Z}.

The Empty Set

The empty set is a set with no elements. It is written like this:

={}

Sometimes you want the empty set to be an element of another set:

{{}} or {}

You can think of it like a box with an empty box inside of it.

The empty set is a subset of any other set. But not an element of any other set.

Subsets

AB means that A is a subset of B. Add a slash to mean that A is not a subset of B.

To check that A is a subset of B, we check that every element of A also belongs to B.

or

To check that A is a subset of B, we check that we can form A by throwing out some of the elements of B.

Screen Shot 2023-09-06 at 1.02.17 PM.png

Cardinality

Cardinality is the number of elements in a set

|S|=3 means that S has a cardinality of 3.

|| can also mean absolute value. We determine this based off of context.

Power sets

A power set S, written Screen Shot 2023-09-06 at 3.15.15 PM.png|32 is a set containing all of the subsets of S.

Example: S={1,2,3}
Screen Shot 2023-09-06 at 3.16.57 PM.png|375

Theorem: determine size of power set
Screen Shot 2023-09-06 at 3.19.43 PM.png

Unions and Intersections

Union

A union is formed by combining two sets, for example S and T. The union contains the set of elements which belong to S or T or both of them.

ST={x:xS or xT}

Screen Shot 2023-09-06 at 7.03.29 PM.png|350

Intersection

Intersections are sets formed from elements in both set S and T.

ST={x:xS and xT}.

Screen Shot 2023-09-06 at 7.13.58 PM.png|350

Complements & differences

Screen Shot 2023-09-06 at 7.41.31 PM.png|375

You do not need to worry about numbers not used in S

Homework 1

![[h1.pdf]]