User:Randall Holmes/Sandbox/semi-formal naive set theory
Semi-formal naive set theory is a foundational system for mathematics and higher logic that should prove adequate for most, perhaps even all, purposes outside of set theory itself, and also be free from the well-known paradoxes.
Membership and equality
[edit]Some things in the mathematical universe are sets. Some things in your favorite universe may not be sets.
The notation asserts that the object x is an element or member of the set S. We may also say that x belongs to S, or, very briefly x is in S. We will try not to say that x is contained in S because that invites confusion. The nonstandard idiom S owns x tempts and goes well with the use of "belongs," and moreover avoids the common but deceptive "S contains x."
If every element of a set S is also an element of a set T, we say that S is a subset of T, written . We may also say that S is contained in T or that T contains S.
The elements of a finite set can be listed. For example is a set whose elements are 1,2,3. Its subsets are (among others) , , itself, and even the infamous or , the empty set. is the same set as , or even (In these lists, the order of elements or repetition of elements has no meaning.)
Two sets are equal iff they have the same elements. This does not mean that non-sets (which have no elements, of course) are all identical to the empty set. But it does mean (among other things) that there is only one empty set.
If there is a relation of part to whole among sets, it is not the membership relation. Parthood is commonly taken to be transitive: If A is part of B and B is part of C, then A is part of C. Notice, though, that , but . has two elements, 2 and 3, while has just one element, . Hence x is not always the same as the set whose only element is x (if indeed this were ever true!), though we tend to talk in this manner when talking about points in geometry. On the other hand, the subset relation does have the property that if and hold, then follows. Hence the subset relation is formally (and metaphorically) suited to be the relation of part to whole on sets.
The universe
[edit]We begin by introducing the universe of discourse, denoted U, having the following properties:
- U is a set;
- Every finite set of elements of U is also an element of U;
- Every element of U which is a set has every element and every subset also in U (Note that it can be proved that not all subsets of U belong to U.);
- For each element A of U, the set of all finite subsets of A belongs to U.
The idea is that U contains all the material we wish to talk about from the outset. If a set is part of our universe of discourse, we may reasonably expect all of its elements and all of its subsets to also be in our universe of discourse, and it is convenient to be able to make finite (unordered) lists of things in our universe of discourse and still be in our universe of discourse.
We need to be more explicit about how we arrange for all finite sets to be in U: we stipulate that is in U, that the set is in U for each x in U, and that for each pair of sets A and B, their boolean union , defined as the set of all x such that either or belongs to U as well. This is more than enough to ensure that any = belongs to U if all its elements belong to U.
Our reasons for including "the set of all finite subsets of A" for A in U may be allowed to remain mysterious for the moment. We must, though, say what we mean. An element of U is said to be finite if it belongs to each subset of U which contains the empty set, contains all singletons, and is closed under boolean unions (U itself is stipulated to be such a subset): finiteness for elements of U is sufficient to make it clear what is meant by finite in each of the conditions above.
Numerals
[edit]We can use the properties of U cited above to show that there is a sequence of objects usable as numerals in U: define 0 as , 1 as , 2 as , and so forth. Each natural number n is thus defined as the finite set .
Properties and universes
[edit]We might naively suppose that any property determines a set whose elements are all the x for which the sentence Q(x) (x has the property Q) is true. This we do not suppose here.
We do suppose that for any property Q, there is a set of all x which have the property Q and belong to our universe U. We suppose further that there is a set U2 which has all subsets of U as elements. Moreover, we allow this process to be repeated: we suppose that there is a set U3 which has all subsets of U2 as elements , and that every property Q determines a set which belongs to U3, and further that Un+1 exists for each natural number n, having among its elements all the subsets of Un, and having elements for each property Q. We suppose (but do not restrict ourself to supposing) that any open sentence R(x) in mathematical language (including the language of our set theory) expresses a property of x.
We usually suppose that every set A belongs to Un for some n (depending on A).
We have not defined U2 as the power set P(U) of U (we can define P(U) as the set of all elements of U2 which are subsets of U): we have left open the possibility that there are more elements of U2. In fact, we stipulate that each Un has the same closure properties as U: each finite subset of Un belongs to Un, each element or subset of an element of Un belongs to Un, and for any A in Un, the set of all finite subsets of A also belongs to Un. We adopt no restrictions on how much additional stuff each Un+1 can contain. The Un's are a hierarchy of universes of discourse each fit for the same purposes as U; we expect that anything we do will fit in some fixed universe in this hierarchy.
To ask whether all the Un form a sequence or set is to transcend naivete.
Some facts about subsets
[edit]For any set , and property Q, we can define as . All elements of A are in U, so this has the intended members, and it belongs to U2 (and ) by the discussion above. But it is also a subset of A, and any subset of an element of U belongs to U, so we actually have for any set A belonging to U and any property Q.
Subsets of elements of U are elements of U, but subsets of U itself are not so reliable.
Consider . This set might or might not contain all of U (nothing we have said prevents some sets from being elements of themselves, though it is hard to see how to show that there is (or is not) such a set). One thing that is certain is that it is not an element of U (though it is an element of U2). R is an element of R iff R is an element of U and R is not an element of R. If "R is an element of U" were true, this would simplify to the impossible "R is an element of R iff R is not an element of R". We can use the same technique to build sets in each Un+1 which are not in Un. This is the positive content of Russell's paradox for our semi-formal theory.
Notice that U itself cannot belong to U, because it has a subset R which does not belong to U.
The set of natural numbers
[edit]For any set x, define as . Notice that for each natural number n as we have defined them individually above, n+1 = n+, and also that for any set x in U, is also in U.
We call a subset I of U just in case is in I and for each x in I, we also have in I.
Notice that U itself is inductive, and that each inductive set contains 0 (as we have defined it) and contains n+1 if it contains n. We define the set N of all natural numbers as the set of all elements of U which belong to every inductive set.
The form of this definition enforces the principle of mathematical induction, and with some cunning enables the definition of relations and operations of arithmetic as well.
It would be entirely natural to stipulate that N, which clearly belongs to U2, belongs to U as well, and to make similar decisions as further kinds of numbers and basic sets of numbers are constructed.
Ordered pairs, Cartesian products, and relations
[edit]The ordered pair (a,b) is defined as The crucial point about this (or any other) definition of an ordered pair is that (a,b)=(c,d) implies both a=c and b=d.
Note that if and , then as well. Hence for any relation (two place predicate) R(x,y), which codes the restriction of the relation R to U. Similar constructions work higher up in the hierarchy.
If A and B are sets, the Cartesian product is defined as . Any relation whose domain is a subset of A and whose range is a subset of B is coded by a subset of . Although it is a bit late in the game to fiddle with the basic rules, note that it would be very nice if U were closed under cartesian products, as then relations between sets from U would be in U for the same reason that subsets of sets belonging to U are in U.
As it turns out, this has already been arranged. A one- or two-element set is certainly finite. The Cartesian product of A and B inhabits the set of all finite subsets of the set of all finite subsets of , which inhabits U if A and B do.