By definition every logical statement is either true or false. Let these truth values be denoted by 1 and 0 respectively.
If p is a logical statement, then define φ(p) = 1 if p is true, and φ(p) = 0 if p is false. Here φ is a function from the set of a all logical statements into the set {0,1}.
For example φ(Germany is in Europe) = 1 and φ(All triangles have 4 sides) = 0.
return to chapter 4 on Functions
- - - - - - - - - - - - - - - - - - -
The following is a definition.
Ordered pairs are the elements of the product UxV of any two non-empty sets U and V (U and V may be the same set). The functions
The term "projections" is motivated by the projections of the coordinate plane of elementary algebra onto the x-axis and y-axis. The functions π1(x,y) = x and π2(x,y) = y carry the point (x,y) perpendicularly onto x on the x-axis and onto y on the y-axis, respectively. See the adjacent figure. (Actually, the points x and y on the axes are identified with points (x,0) and (0,y) in the coordinate plane.)
- - - - - - - - - - - - - - - - - - -
The operation of addition x + y of real numbers is well known. However, it is actually a function from a set of ordered pairs. Writing it as +(x,y) emphasizes this fact, but is never written this way. Addition, subtraction and multiplication are functions from RxR --> R. They simply add, subtract and multiply the coordinates of any ordered pair in RxR. Division by zero is not allowed, so division is a function from RxQ --> R, where Q = set of real numbers R with zero removed. These functions are called binary operations of arithmetic. In any rigorous development of the familiar number systems, these operations are defined precisely in the language of functions.
A revolution is a complete turn around the race track. A person or car must go from marker 0 around the circle through markers 1,2,3,4,5,6,7 once and back to marker 0. Notice that the place for marker 10 is already occupied by marker 2 because 10 = 1 rev + 2. Since 8 = 1 rev + 0, the starting place is already occupied by marker 0. Denote the set of existing markers by J8 = {0,1,2,3,4,5,6,7}. To find what marker in J8 already occupies the place where marker 100 should go, divide 100 by 8 to get the number of revolutions and look at the remainder: 100 = 12 rev + 4. The remainder 4 is the answer.
For any positive integer k, k = (number of rev) + (remainder) where the remainder is one of the integers in J8. Arithmetically this is written k = (number of rev)*8 + (remainder). The integral quotient k divided by 8 is the (number of rev). The (remainder) is the number in J8:
This is the beginning of constructing a function from the set of integers J onto J8. To complete the construction, the images of the negative integers must be determined. A negative revolution is one trip around the race track from marker 0 to marker 0 but in the opposite direction, that is, through 7,6,5,4,3,2,1 in that order. Then
-0 = -1 rev + 0,
-1 = -1 rev + 7,
-2 = -1 rev + 6,
-3 = -1 rev + 5,
-4 = -1 rev + 4,
-5 = -1 rev + 3,
-6 = -1 rev + 2,
-7 = -1 rev + 1,
Using the notation of a function:
[*]
-0 --> 0,
-1 --> 7,
-2 --> 6,
-3 --> 5,
-4 --> 4,
-5 --> 3,
-6 --> 2,
-7 --> 1,
Table [*] can be used to find the image of any negative integer. For example,
Notice that if 8 is added to the negative integers in table [*] then their equivalents in J8 appear.
A generalization of the 8 markers can be made: at equal intervals around the circle place n markers at equal intervals, where n is a positive integer. This will involve integers in the set Jn = {0, 1, 2, ..., n-1}. The function from J onto Jn
Replacing 12 by 0, then J12 = {0,1,2,3,4,5,6,7,8,9,10,11} are hourly markers on a circular face of a clock. Then
15 --> 3,
72 --> 0,
-15 --> -3
--> 9 (= 12 - 3)
J24 represents the hourly markers on a 24 hour clock, and is better to convert any number of revolutions into days and with any remainder as time on this clock 89 --> 17 (5 pm) (plus 3 days).
Another example is J360. It represents the integral degrees in one revolution about a circle.
1000 degrees --> 280 degrees (plus 2 revolutions).
-1000 degrees --> -280 degrees --> 80 degrees (360 - 280).
==========
Another example is used oftn in advanced mathematics as a counter-example. The R1 = reals mod 1 are all the real numbers from zero to one, including 0 but not including 1. The numbers 0.7, 0.2456, π/4, 0 are in R1.
But 1, 4.7, -0.000000001, π are not in R1.
To define the function from the real numbers R onto R1, let x be any positive real number in the form of a decimal. Delete the part before the decimal. The remainder (the decimal point and the part after it) is in R1.
5.3829 --> .3829.
11/4 = 2.75 --> .75.
-.345 --> .655 (= 1 - .345).
Suppose there are n balls to be put into fewer cans. An attempt is made to put exactly one ball in each can. The argument here will show that no matter the value of n (but n must be a positive integer) the attempt will fail:
Let r(n) be the open statement
r(n): it is impossible to put n balls into fewer cans, no can is to contain more than one ball.
In the case of r(1), there are no cans, so r(1) is trivially true.
For r(2) there is at most 1 can. Take away the can and one ball, and the situation becomes that of r(1) which is true.
for r(3) there are at most 2 cans, and more balls. Take away a can and one ball and the situation becomes that of r(2), which is true.
This process continues, the truth of r(n-1) implies the truth of r(n).
q(1) is true because P1 = {1} has only one proper subset, namely the empty set. With no elements in it, the empty set cannot be in one-to-one correspondence with any non-empty set.
Another very different notation is often used. For a simpler introduction to it a different permutation is used:
The word "cyclic" implies that a circular motion is involved. The adjacent figure shows this permutation byplacing the numbers in [5.5] around a circle in a counter-clockwise direction (the arrow inside the circle shows this direction). A (horizontal) cyclic notation for the same permutation can begin with any number, go counter-clockwise and return to that starting number.
The two (horizontal) notations given above omit the arrows, include every number once and only once, and include everything in parentheses:
[5.6] cyclic notations of a permutation
Consider now the permutation:
The cycle of one number (6) may be omitted. Missing cycles of one element indicate that element is a fixed point. However with (6) as part of the notation, the true length of the permutation can be seen. For example, (1)(2)(3)(4)(5)(6)(7) denotes the identity transformation on P7. All the elements are fixed points.
Imagine a vertical line through 3. (On it is an altitude of the triangle. ) Reflect the triangle about this line (axis) to go from any figure in the left colume to the corresponding figure in the right column. For example, a reflection about this vertical line changes Fig A into Fig AF. Similarly for B,BF and C,CF. The reflection is indicated by the double arrow <--> and the letter F.
To get the actual permutation F from the physical reflection F about the vertical axis of each triangle (going from figures in the left column to figures in the right column), notice that the top vertex at 3 is always a fixed point. That colored angle stays fixed pointing at 3. But a change happens. Therefore the angles at 1 and 2 much be swapped. The permutation must be:
Using rotations and the reflection about the vertical axis, it is possible to go from the colored triangle in Fig A to the colored triangle in any figure, including A itself using the identity transformation. Similarly R moves the colored triangle in Fig B onto the colored triangle in Fig C.