Mathematical Proof and the Principles of Mathematics/Sets/Union and intersection

From testwiki
Jump to navigation Jump to search

Unions of sets

The construction that allows us to form sets with more than two elements is the union. It allows us to take existing sets and form a single set containing all the elements of those sets.

Axiom (Union)

Given a set

S

of sets, there exists a set

U

such that

xU

if and only if

xA

for some

AS

.

Definition Given a set S of sets, we call a set U as in the Axiom of Union, a union over S and denote it S.

Example Let A={1,2,3}, B={1,2} and C={1,5}. Now let S={A,B,C}. Then S={1,2,3,5}.

Theorem Given a set S of sets as in the Axiom of Union, the union over S is unique.

Proof If U1 and U2 were both unions over S then xU1 iff xA for some AS. Similarly xU2 iff xA for some AS. Thus xU1 iff xU2, and so U1=U2 by extensionality.

We recover the familiar definition of the union of two sets as follows.

Definition If S={A,B} we denote S by AB and call it the union of A and B.

Theorem If A and B are sets then AB is a set.

Proof By the Axiom of Pair, S={A,B} is a set. Thus by the Axiom of Union AB=S is a set.

Comprehension

Comprehensions allow us to select elements of an existing set that have some specified property. The Axiom Schema of Comprehension says that such selections define sets.

There is very little restriction on the properties we may use in comprehensions, except that they must be specified with formulas in the language of set theory and formal logic.

We first define what we mean by a formula.

Definition A formula can contain variables x1,x2, of which we are allowed an unlimited supply, and constants, i.e. specific sets A1,A2, say, and must be built up using a finite number of the following:

  • Expressions of the form uv and u=v are formulas, called atomic formulas, for all variables and constants u and v.
  • If P and Q are formulas then PQ, PQ, ¬P, (PQ) and (PQ) are formulas.
  • If P is a formula then xiP and xiP are formulas.

Here stands for logical or, is logical and, ¬ is logical negation, is implies and stands for if and only if, which we shall often abbreviate iff.

The expression x is called a universal quantifier. It means for all sets x. The expression x is an existential quantifier. It means there exists a set x.

Example Given a set A the expression P(x,A)=y(xy)(xA) is an example of a formula.

Although symbols , , etc., and ! for there exists a unique, are not part of the formal language, we can define them in terms of the existing language of set theory.

For example, AB can be written x(xAxB). Similarly, !xP(x) can be written x(P(x)y(P(y)y=x)).

Definition In a formula, any variable xi inside an expression of the form xiP or of the form xiP is said to be bound. All other variables in a formula are said to be free, or arguments of the formula.

We are now in a position to state the Axiom Schema of Comprehension.

Axiom Schema (Comprehension)

For a set

A

and a property

P(x,A)

there exists a set

B

consisting of the

xA

for which

P(x,A)

holds.

Note that this is not just one axiom, but an axiom for each possible property. We call a collection of axioms like this an axiom schema.

Technically the formula P(x,A) can have finitely many free variables, so is sometimes denoted P(x,y1,y2,,yn,A) where the yi are free variables. But we suppress this technicality for now and just write P(x,A).

Theorem The set of elements of a set A for which a property P(x,A) holds is unique.

Proof This follows by noting that if there were two such setsS1 and S2 then xS1 iff xA and P(x,A) holds. However, this is the case iff xS2. Thus xS1 iff xS2 and the result follows by extensionality.

Definition The set of elements of a set A for which P(x,A) holds is denoted {xA|P(x,A)}.

We can read the vertical bar as such that.

Example If A={1,2,3} then {xA|x2}={1,3}.

The Axiom Schema of Comprehension is sometimes called the Subset Axiom Scheme or Axiom Schema of Specification, since it guarantees that any subset of a set specified by a formula, is a set.

Intersections of sets

We can define the familiar intersection of two sets in terms of a comprehension.

  AB={xAB|xAandxB}.

The formula in the comprehension consists of two predicates from the language of sets, (xA) and (xB), joined by the logical conjunction and from formal logic.

More generally, we have the following.

Definition Let S be a set of sets. The intersection over S is defined by

  S={xS|xAfor allAS}.

Example Let A={1,2,3}, B={2,3,5} and C={1,2,3,4}. If S={A,B,C} then S={2,3}.

Theorem Let S be a set of sets. Then S is a set.

Proof This is a set by the axioms of union and comprehension.

The following is a useful definition.

Definition Two sets A and B are said to be disjoint if AB=.

Example The sets A={1,2,3} and B={4,5} are disjoint since their intersection is empty.

Exercises

  • Show that if A and B are sets then AB if and only if AB=B.
  • Let A, B and C be sets. Show that there exists a set whose elements are A, B and C.
  • Suppose X1,X2,,Xn and Y1,Y2,,Yn are sets with XiYi for all i. Let S={X1,X2,,Xn} and T={Y1,Y2,,Yn}. Show that ST.

Template:Chapnav

Template:BookCat