Set Theory/Sets

From testwiki
Revision as of 21:53, 17 February 2008 by imported>Rickpock
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Sets and elements

A mathematical set is defined as an unordered collection of distinct elements. That is, elements of a set can be listed in any order and elements occurring more than once are equivalent to occurring only once.

We say that an element is a member of a set. An element of a set can be anything. It's easiest to begin with only numbers as elements. For that reason, most of the examples in this book will only include numbers, but this is only a technique to make the topic less abstract.

Terminology

For a set y having an element x, the following are all used synonymously:

x is a member of y
x is contained in y
x is included in y
y contains x
y includes x

Notation

We specify a set by specifying its members. The curly brace notation is used for this.

{1, 2, 3}

is the set containing 1, 2, and 3 as members. The curly brace notation can be extended to specify a set by specifying a rule for set membership.

{x:x=1 or x=2 or x=3}

is again the set containing 1, 2, and 3 as members.

{x:x is a natural number}
{1, 2, 3, ...}

both specify the set having the members 1, 2,3, etc.


A modified epsilon notation is used for set membership. Thus

xy

says that x is a member of y. We can also say that x is not a member of y:

xy

Characteristics of sets

A set is uniquely identified by its members. The expressions

{x:x is an even prime}
{x:x is a positive square root of 4}
{2}

all specify the same set even though the concept of an even prime is different from the concept of a positive square root. Repetition of members is inconsequential in specifying a set. The expressions

{1, 2, 3}
{1, 1, 1, 1, 2, 3}
{x:x is an even prime or x is a positive square root of 4 or x=1 or x=2 or x=3}

all specify the same set.


Sets are unordered. The expressions

{1, 2, 3}
{3, 2, 1}
{2, 1, 3}

all specify the same set.


Sets can have other sets as members. There is, for example, the set

{{1, 2}, {2, 3}, {1, George Washington}}

Some special sets

As stated above, sets are defined by their members. However some sets are given names to ease referencing them.

The set with no members is the empty or null set. The expressions

{}
{x:xx}

all specify the empty set.

A set with exactly one member is called a singleton. A set with exactly two members is called a pair. Thus {1} is a singleton and {1, 2} is a pair.

Subsets, power sets, set operations

Subsets

A set S is a subset of set A if every member of S is a member of A. We use the horseshoe notation to indicate subsets. The expression

{1, 2}{1, 2, 3}

says that {1, 2} is a subset of {1, 2, 3}. The empty set is a subset of every set. Every set is a subset of itself. A proper subset of A is a subset of A that is not identical with A. The expression

{1, 2}{1, 2, 3}

says that {1, 2} is a proper subset of {1, 2, 3}.

Power sets

A power set of a set is the set of all its subsets. A script 'P' is used for the power set. Note that the empty set and the set itself are members of the power set.

𝒫{1, 2, 3}={, {1}, {2}, {3}, {1, 2}, {1, 3}, {2, 3}, {1, 2, 3}}

Union

The union of two sets A and B, written AB, is the set that contains all the members of A and all the members of B (and nothing else). That is,

AB={x:xA or xB}

As an example,

{1, 2, 3}  {2, 3, 4}={1, 2, 3, 4}

Intersection

The intersection of two sets A and B, written AB, is the set that contains everything that is a member of both A and B (and nothing else). That is,

AB={x:xa and xb}

As an example,

{1, 2, 3}  {2, 3, 4}={2, 3}

Two sets are disjoint if their intersection is empty. That is, if A and B are disjoint sets,

AB=

Relative complement

The relative complement of A and B, written BA, is the set containing all the members of B that are not members of A. That is,

BA={x:xB and xA}

As an example,

{2, 3, 4}{1, 3}={2, 4}

Absolute complement

If we define a universe, or a set containing all of the elements we wish to consider, then we can discuss the absolute complement of a set. For a universe U, define the absolute complement of a subset A of U to be

UA

The absolute complement of A is denoted by AC.

Some properties of set operations

Union and intersection

Based on the preceeding definitions, we can derive some useful properties for the operations on sets. The proofs of these properties are left as an exercise to the reader.

The union and intersection operations are symmetric. That is, if A and B are sets,

AB=BA
AB=BA

Furthermore, they are associative. That is, if A, B, and C are sets,

(AB)C=A(BC)
(AB)C=A(BC)

Furthermore, union distributes over intersection and and intersection distributes over union. That is, if A, B, and C are sets,

A(BC)=(AB)(AC)
A(BC)=(AB)(BC)

De Morgan's laws

Two important propositions for sets are De Morgan's laws. They state that, for sets A, B, and C,

A(BC)=(AB)(AC)
A(BC)=(AB)(AC)

When A is a universe to which B and C belong, De Morgan's laws can be stated more simply as,

(BC)C=BCCC
(BC)C=BCCC

Families of sets

A set of sets is usually referred to as a family or collection of sets. Often, families of sets are written with a script or Fraktur font to easily distinguish them from other sets. For a family of sets 𝔄, define the union and intersection of the family by,

𝔄=A𝔄A={x:x is in some A𝔄}
𝔄=A𝔄A={x:x is in A for all A𝔄}

For a family of sets, we say that it is pairwise disjoint if any two distinct members we choose from the family are disjoint.

Template:Chapnav