Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikibooksThe Free Textbook Project
Search

Mathematical Proof and the Principles of Mathematics/Sets/Classes

From Wikibooks, open books for an open world
<Mathematical Proof and the Principles of Mathematics |Sets

So far, the only set we've actually proved to exist is ∅. We'd like to continue on to build up more sets such as {∅}, {{∅}}, {∅, {∅}}, etc., and define important set operations such as union and intersection. Informally, the way to do this is using formulas such as:

{a}={x:x=a}{\displaystyle \{a\}=\{x:x=a\}}
{a,b}={x:x=aorx=b}{\displaystyle \{a,b\}=\{x:x=a\operatorname {or} x=b\}}
ab={x:xaorxb}{\displaystyle a\cup b=\{x:x\in a\operatorname {or} x\in b\}}

The empty set can be made to fit this pattern using

={x:False}{\displaystyle \varnothing =\{x:False\}}

More generally, given a predicateP(x), we would like to use the formula

{x:P(x)}{\displaystyle \{x:P(x)\}}

To mean the set containing thosex for whichP(x) is true. As seen in the history section though, using any predicate you want for this willy-nilly leads to paradoxes. So every time the formula is used there must be a theorem which states that there is such a set and a theorem that says that such as set is unique. We'll need some machinery to streamline this process.

Classes

[edit |edit source]

Although the notion of a class is not defined formally in Zermelo-Fraenkel set theory, it is worthwhile to define it informally since it is a useful concept. Specifically, ifP(x) is a predicate, then define theclassP to be

P={x:P(x)}{\displaystyle P=\{x:P(x)\}}

Logically, a classP{\displaystyle P} is just a predicateP(x){\displaystyle P(x)} for whichxP{\displaystyle x\in P} is shorthand forP(x){\displaystyle P(x)}. We informally think of a class as the collection of all sets that satisfy its defining formula.

Much of what can be said about sets applies to classes as well, as long as you remember that restrictions apply. For one thing a class can only appear on the right side of the ∈ symbol. Also, since classes aren't objects in our universe of discourse, they can't be used in quantifiers. Finally, the = symbol is only defined between sets. We can make a similar definition which applies to classes:

P=Q when for allx,P(x) iffQ(x)

But keep in mind that the Axiom of Substitution does not apply for this type of equality.

Example: IfQ(x) denotes the predicate

not(xx){\displaystyle (x\in x)}

thenQ is the "set" which causes the problem with Russel's paradox. The paradox is avoided because the statementQQ, which putsQ to the left of the ∈ symbol, cannot even be formed legally.

Ifa is a fixed set, then we can define the predicateA(x) to be

xa{\displaystyle x\in a}

Then the classA and the seta have the same elements, in other words:

(xA)iff (xa){\displaystyle (x\in A)\operatorname {iff} \ (x\in a)}

In some sense you could say thatA=a, but we're stepping on shaky ground here becauseA anda are different types;a is a set whileA is technically still a predicate.

Collectivizing predicates

[edit |edit source]

Contrary to what you might be thinking, this has nothing to do with early 20th century Soviet agriculture. A predicateP(x){\displaystyle P(x)} is calledcollectivizing when

For somey{\displaystyle y}, for allx{\displaystyle x},xy{\displaystyle x\in y} iffP(x){\displaystyle P(x)}.

(This is an example of a second order predicate, meaning a predicate which applies to predicates rather than objects. Such things don't exist in the logic we've been using so far, but you can think if it as just shorthand for the phrase above.) In less formal language,P(x){\displaystyle P(x)} is collectivizing when there is a sety{\displaystyle y} whose elements are thex{\displaystyle x} for whichP(x){\displaystyle P(x)} is True.

For example the predicate

For ally{\displaystyle y}, notyx{\displaystyle y\in x}

is collectivizing since it holds for ∅. On the other hand

Notxx{\displaystyle x\in x}

can't be collectivizing because it would allow Russell's paradox discussed in the introduction to this chapter.

To see how this is useful, define the predicateQ(y){\displaystyle Q(y)} to mean

For allx{\displaystyle x},xy{\displaystyle x\in y} iffP(x){\displaystyle P(x)}.

ThenP(x){\displaystyle P(x)} is collectivizing is the same as the existence property forQ(y){\displaystyle Q(y)}. If, in addition, we have the uniqueness property then

TheY{\displaystyle Y} for whichQ(Y){\displaystyle Q(Y)}

is well defined. To prove the uniqueness property, we need

For ally{\displaystyle y},z{\displaystyle z},Q(y){\displaystyle Q(y)} andQ(z){\displaystyle Q(z)} implyy=z{\displaystyle y=z}.

Expanded, this is

Theorem SO1: For ally{\displaystyle y},z{\displaystyle z}, if for allx{\displaystyle x},xy{\displaystyle x\in y} iffP(x){\displaystyle P(x)} and for allx{\displaystyle x},xz{\displaystyle x\in z} iffP(x){\displaystyle P(x)}, theny=z{\displaystyle y=z}.

This may seem complicated, but proving it isn't hard. We'll start an outline and leave the details to the reader.

Choose arbitraryb{\displaystyle b} andc{\displaystyle c}, we must now prove that if for allx{\displaystyle x},xb{\displaystyle x\in b} iffP(x){\displaystyle P(x)} and for allx{\displaystyle x},xc{\displaystyle x\in c} iffP(x){\displaystyle P(x)}, thenb=c{\displaystyle b=c}. Assume for allx{\displaystyle x},xb{\displaystyle x\in b} iffP(x){\displaystyle P(x)} and for allx{\displaystyle x},xc{\displaystyle x\in c} iffP(x){\displaystyle P(x)}. So the new goal is to proveb=c{\displaystyle b=c}. Axiom S4 says we can do this by showingbc{\displaystyle b\subseteq c} andcb{\displaystyle c\subseteq b}. To provebc{\displaystyle b\subseteq c} we need to prove that for all x,xb{\displaystyle x\in b} impliesxc{\displaystyle x\in c}. But for arbitrarya{\displaystyle a} we haveab{\displaystyle a\in b} iffP(a){\displaystyle P(a)} andP(a){\displaystyle P(a)} iffac{\displaystyle a\in c} soab{\displaystyle a\in b} impliesac{\displaystyle a\in c} by Prop. 9 in theLogical equivalence section.

Defining sets by comprehension

[edit |edit source]

We can now make the following definition:

Definition SO2: IfP(x){\displaystyle P(x)} is collectivizing, then define
{x:P(x)}{\displaystyle \{x:P(x)\}}
As the set for which
For allz{\displaystyle z},z{x:P(x)}{\displaystyle z\in \{x:P(x)\}} iffP(z){\displaystyle P(z)}.

The resulting set is said to be defined by comprehension. For the next few sections we'll follow the same plan; state an axiom or prove a theorem which makes a certain predicate collectivizing, then define notation for the corresponding set.

IfP(x){\displaystyle P(x)} is not collectivizing, and that can happen as we've been stressing, then technically

{x:P(x)}{\displaystyle \{x:P(x)\}}

is undefined. It's useful though to think if it as a set-like object called aclass.

Unions

[edit |edit source]

In order to get from singletons and pairs to triples, we'll use a more general method of combining sets. It's usual to start by defining the union of two sets, but this is actually a special case of a more basic operation, namely the union over a set.

Axiom SO3 (Axiom of unions): For allz{\displaystyle z}, the predicate
For somey{\displaystyle y},xy{\displaystyle x\in y} andyz{\displaystyle y\in z}
is collectivizing.

Less formally, this says that, givenz{\displaystyle z}, there is a setu{\displaystyle u} so thatxu{\displaystyle x\in u} iffx{\displaystyle x} is an element of some element ofz{\displaystyle z}.

This allows us to make the definition

Definition SO7:z:={x:for somey,xyandyz}{\displaystyle \bigcup z:=\{x:\operatorname {for\ some} y,x\in y\operatorname {and} y\in z\}}

The expressionz{\displaystyle \bigcup z} is read "the union overz{\displaystyle z}.

We leave the proofs of the following as exercises:

Theorem SO8: For allx{\displaystyle x},z{\displaystyle z},xz{\displaystyle x\in z} impliesxz{\displaystyle x\subseteq \bigcup z}
Theorem SO9: For allx{\displaystyle x},y{\displaystyle y},z{\displaystyle z},(xzimpliesxy)implieszy{\displaystyle (x\in z\operatorname {implies} x\subseteq y)\operatorname {implies} \bigcup z\subseteq y}

Informally,z{\displaystyle \bigcup z} contains every element ofz{\displaystyle z} as a subset and is the smallest such set.

To get the usual union of two sets, combine this union with a pair:

Definition SO10:xy:={x,y}{\displaystyle x\cup y:=\bigcup \{x,y\}}

We can then prove as a theorem the usual definition:

Theorem SO11: For allx{\displaystyle x},y{\displaystyle y},xy={z:zxorzy}{\displaystyle x\cup y=\{z:z\in x\operatorname {or} z\in y\}}

As usual, the proof is left as an exercise.

It's now possible to define triples, quadruples, etc. for as many elements as needed:

Definition SO12:{x,y,z}:={x,y}{z}{\displaystyle \{x,y,z\}:=\{x,y\}\cup \{z\}}
Definition SO13:{x,y,z,u}:={x,y,z}{u}{\displaystyle \{x,y,z,u\}:=\{x,y,z\}\cup \{u\}}

Etc.

The proofs of the following are left as exercises:

Theorem SO14:={\displaystyle \bigcup \varnothing =\varnothing }
Theorem SO15: For allx{\displaystyle x},{x}=x{\displaystyle \bigcup \{x\}=x}
Theorem SO16: For allx{\displaystyle x},y{\displaystyle y},(xy)=(x)(y){\displaystyle \bigcup (x\cup y)=(\bigcup x)\cup (\bigcup y)}
Theorem SO17: For allx{\displaystyle x},y{\displaystyle y},z{\displaystyle z},{x,y,z}={x,z,y}={y,z,x}{\displaystyle \{x,y,z\}=\{x,z,y\}=\{y,z,x\}}

Here,x=y=z{\displaystyle x=y=z} is shorthand forx=y{\displaystyle x=y} andy=z{\displaystyle y=z}.

Axiom of separation

[edit |edit source]

Before going on to intersections, we need yet another axiom to guarantee they exist. This is a restricted version of comprehension, the idea that any predicate defines a set. This gives it its alternate name, the axiom of restricted comprehension. The unrestricted, and incorrect version says, using the language of classes, that any class is a set. The restricted version says, in effect, any subclass of a set is a set. Written out a bit more formally, this says that for predicatesP(x){\displaystyle P(x)} andQ(x){\displaystyle Q(x)}, if for allx{\displaystyle x}P(x){\displaystyle P(x)} impliesQ(x){\displaystyle Q(x)} andQ(x){\displaystyle Q(x)} is collectivizing, thenP(x){\displaystyle P(x)} is collectivizing. Yet more formally:

Axiom SO18 (Separation): For allz{\displaystyle z}, if for all x,P(x){\displaystyle P(x)} impliesxz{\displaystyle x\in z} thenP(x){\displaystyle P(x)} is collectivizing.

IfR(x){\displaystyle R(x)} is a predicate thenP(x){\displaystyle P(x)} defined asR(x){\displaystyle R(x)} andxz{\displaystyle x\in z} has the required property, so we can make the definition

{xz:R(x)}:={x:xzandR(x)}{\displaystyle \{x\in z:R(x)\}:=\{x:x\in z\operatorname {and} R(x)\}}

with no restriction onR(x){\displaystyle R(x)}. The fact that any predicate can be used here makes the axiom very powerful, but not so powerful that is leads to a contradiction (at far as anyone knows anyway).

It may be helpful to attempt to use this axiom to reproduce Russell's paradox; presumably the attempt will fail since the idea to avoid contradictions. Letc{\displaystyle c} be a set and define

b:={xc:notxx}{\displaystyle b:=\{x\in c:\operatorname {not} x\in x\}}

Now supposebb{\displaystyle b\in b}. Thenb{\displaystyle b} fails to meet the criterion notbb{\displaystyle b\in b} and so notbb{\displaystyle b\in b} a contradiction. Assume, on the other hand, notbb{\displaystyle b\in b}. Then one ofbc{\displaystyle b\in c} or notbb{\displaystyle b\in b} must be false. The second possibility is true by assumption, so we have notbc{\displaystyle b\in c}. But this is far from a contradiction and there is no paradox this time.

Intersections

[edit |edit source]

Intersections are similar to unions except that the 'For some' is replaced by 'for all'. We define intersections following the same plan as for unions. In this case though, we can use the axiom of separation to prove a theorem which replaces the axiom of unions.

Theorem SO19 (existence of intersections): For allz{\displaystyle z} not equal to ∅, the predicate
For ally{\displaystyle y},yz{\displaystyle y\in z} impliesxy{\displaystyle x\in y}
is collectivizing.

Less formally, this says that, givenz{\displaystyle z}, there is a setn{\displaystyle n} so thatxn{\displaystyle x\in n} iffx{\displaystyle x} is an element of every element ofz{\displaystyle z}. The assumptionz{\displaystyle z} not equal to ∅ will be needed in the proof.

Proof (outline): LetQ(x){\displaystyle Q(x)} be the predicate
For ally{\displaystyle y},yz{\displaystyle y\in z} impliesxy{\displaystyle x\in y}.
From notz={\displaystyle z=\varnothing }, theorem S8 on the previous page says there is somewz{\displaystyle w\in z}. Pick one, saydz{\displaystyle d\in z}. One can now prove thatQ(x){\displaystyle Q(x)} impliesxd{\displaystyle x\in d}, and therefore by the axiom of separation,Q(x){\displaystyle Q(x)} is collectivizing.

This allows us to make the definition whenz{\displaystyle z} is not ∅:

Definition SO20:z:={x:for ally,yzimpliesxy}{\displaystyle \bigcap z:=\{x:\operatorname {for\ all} y,y\in z\operatorname {implies} x\in y\}}

The expressionz{\displaystyle \bigcap z} is read "the intersecion overz{\displaystyle z}.{\displaystyle \bigcap \varnothing } is left undefined.

To get the usual intersection of two sets, combine this intersection with a pair:

Definition SO21:xy:={x,y}{\displaystyle x\cap y:=\bigcap \{x,y\}}

We can then prove as a theorem the usual definition:

Theorem SO22: For allx{\displaystyle x},y{\displaystyle y},xy={z:zxandzy}{\displaystyle x\cap y=\{z:z\in x\operatorname {and} z\in y\}}

with the proof is left as an exercise.

Definition SO23:x{\displaystyle x} andy{\displaystyle y} aredisjoint whenxy={\displaystyle x\cap y=\varnothing }. A setz{\displaystyle z} (usually taken to be a set of other sets) ispairwise disjoint if for allx{\displaystyle x},y{\displaystyle y},xz{\displaystyle x\in z} andyz{\displaystyle y\in z} implyx=y{\displaystyle x=y} orx{\displaystyle x} andy{\displaystyle y} are disjoint.

In other wordsx{\displaystyle x} andy{\displaystyle y} are disjoint when they have no elements in common, andz{\displaystyle z} is pairwise disjoint if any two different elements are disjoint.

Retrieved from "https://en.wikibooks.org/w/index.php?title=Mathematical_Proof_and_the_Principles_of_Mathematics/Sets/Classes&oldid=4100736"
Category:

[8]ページ先頭

©2009-2025 Movatter.jp