Skip to content
Topos Uranos

Summary

This lesson constructs the integers from the natural numbers. Each integer is defined as a class of pairs of natural numbers (a,b)(a, b), which represent the subtraction a−ba - b even when it does not exist among the natural numbers; the sum and the product of classes are defined by means of representatives, and it is proved that the result does not depend on the representatives chosen. The natural numbers lie inside the integers, zero and the opposites appear, and it is proved that every integer is a natural number, zero or the opposite of a natural number. On this basis the lesson proves the rule of signs, the absence of zero divisors, the cancellation law for multiplication and the properties of order, and it reduces division with remainder of a negative dividend to that of a natural dividend.

Learning objectives

  1. Construct the integers as classes of pairs of natural numbers and prove that the equivalence of pairs is an equivalence relation and that the sum and the product of classes are well defined.
  2. Identify the natural numbers, zero and the opposites within the integers, and prove that every integer is exactly one of them.
  3. Prove the rule of signs, the absence of zero divisors and the cancellation law for multiplication from the properties of addition and multiplication.
  4. Define the order of the integers, prove its compatibility with the operations and apply it to division with remainder of negative dividends.

The construction of the integers

In the lesson on number systems the integers were presented as the set that gathers the natural numbers, zero and the opposites of the natural numbers, and their properties were stated. Now, stating these properties is not proving them: as long as it has not been said what a negative number is, the rule of signs or the compatibility of order with multiplication are conventions, not theorems. This lesson constructs the integers with no other resources than the Peano axioms and the operations on natural numbers, and it deduces all those rules from the construction. As in the rest of the course, the natural numbers begin at 11; zero appears for the first time in this construction.

The idea is as follows. The equation x+b=ax + b = a has a natural solution only when b<ab < a, and that solution is the difference a−ba - b. If this is so, a negative number can be conceived as a pending subtraction, described by the pair of natural numbers (a,b)(a, b) that would produce it. Many pairs describe the same subtraction; for example, (5,2)(5, 2), (4,1)(4, 1) and (9,6)(9, 6) describe 33, and (2,5)(2, 5) and (1,4)(1, 4) describe what does not yet exist and will be −3-3. Two pairs (a,b)(a, b) and (c,d)(c, d) describe the same subtraction when a−b=c−da - b = c - d; this condition uses subtractions that may not exist, but adding b+db + d to both sides turns it into an equality between natural numbers that always makes sense:

a−b=c−d↔a+d=b+ca - b = c - d \leftrightarrow a + d = b + c
Definition (equivalent pairs). Two pairs of natural numbers (a,b)(a, b) and (c,d)(c, d) are equivalent, and one writes (a,b)∼(c,d)(a, b) \sim (c, d), when a+d=b+ca + d = b + c.

On a grid whose points are the pairs of natural numbers, with aa on the horizontal axis and bb on the vertical one, the pair (a+1,b+1)(a + 1, b + 1) is equivalent to (a,b)(a, b), because a+(b+1)=b+(a+1)a + (b + 1) = b + (a + 1); hence the pairs equivalent to a given one lie on a line parallel to the diagonal, along which one moves one place to the right and one place up. For this relation to serve to identify pairs, it must behave like an equality: every pair is equivalent to itself, the relation does not depend on the order in which the pairs are named, and two pairs equivalent to a third are equivalent to each other. That is, it must be reflexive, symmetric and transitive: an equivalence relation, in the sense of the lesson on sets, relations and functions, whose example on the relation that will construct the integers anticipated this construction.

LemmaThe equivalence of pairs

The equivalence of pairs of natural numbers is reflexive, symmetric and transitive: it is an equivalence relation. The first two properties reduce to the commutativity of addition; the third requires the cancellation law for addition, proved in solved problem 1 of the lesson on the operations on natural numbers. The figure follows the pairs (5,2)(5, 2), (4,1)(4, 1) and (7,4)(7, 4).

Proof

  1. a+b=b+aa + \resaltar{b} = b + \resaltar{a}

    Reflexivity: the pair (a,b)(a, b) is equivalent to itself, because the condition is the commutativity of addition.

  2. a+d=b+c→c+b=d+aa + d = b + c \rightarrow \resaltar{c + b} = \resaltar{d + a}

    Symmetry: if (a,b)(a, b) is equivalent to (c,d)(c, d), exchanging the two sides and commuting each sum gives the condition for (c,d)(c, d) and (a,b)(a, b).

  3. a+d=b+c,c+f=d+e\dato{h1}{a + d = b + c}, \quad \dato{h2}{c + f = d + e}

    Transitivity: suppose that (a,b)(a, b) is equivalent to (c,d)(c, d), and (c,d)(c, d) to (e,f)(e, f).

  4. (a+d)+(c+f)=(b+c)+(d+e)\resaltar{(a + d)} + \resaltar{(c + f)} = \resaltar{(b + c)} + \resaltar{(d + e)}

    We add the two equalities term by term.

  5. (a+f)+(c+d)=(b+e)+(c+d)\resaltar{(a + f)} + (c + d) = \resaltar{(b + e)} + (c + d)

    By associativity and commutativity, we regroup the four addends of each side so that c+dc + d appears in both.

  6. a+f=b+e\dato{t}{a + f = b + e}

    By the cancellation law for addition, c+dc + d is removed: the pairs (a,b)(a, b) and (e,f)(e, f) are equivalent.

The integers as classes of pairs

Since the equivalence of pairs is an equivalence relation, the general results of the lesson on sets, relations and functions hold for it, and there is no need to repeat them. The class of the pair (a,b)(a, b) is the set of all the pairs of natural numbers equivalent to (a,b)(a, b); in the notation of that lesson it would be C((a,b))C((a, b)), and here it is written, more briefly, C(a,b)C(a, b). Each pair of the class is a representative of it. On the grid, a class is the set of the points of a line parallel to the diagonal. By the lemma on equivalence classes proved there, two pairs are equivalent if and only if their classes are equal, and two classes with some pair in common coincide; and, by the theorem on equivalences and partitions, the classes form a partition of the pairs of natural numbers. From this follows the rule by which two classes are compared:

C(a,b)=C(c,d)↔a+d=b+cC(a, b) = C(c, d) \leftrightarrow a + d = b + c
Definition (integers). An integer is a class of pairs of natural numbers. The set of the integers is denoted by Z\mathbb{Z}; it is the quotient set of the pairs of natural numbers by the equivalence of pairs.
Z=(N×N)/∼\mathbb{Z} = \left( \mathbb{N} \times \mathbb{N} \right) / {\sim}

The definition may seem strange, because a number turns out to be an infinite set of pairs. But this is what already happens with fractions: 12\frac{1}{2} and 24\frac{2}{4} are different ways of writing one and the same number, and what is defined is what all of them have in common. The class C(5,2)C(5, 2) will be 33; the class C(2,5)C(2, 5), −3-3; the class C(1,1)C(1, 1), 00. Before using these names, the operations must be defined and it must be checked that the natural numbers are indeed inside the integers.

The sum and the product of classes

The operations are defined by imitating what would happen if the subtractions existed. If (a,b)(a, b) represents a−ba - b and (c,d)(c, d) represents c−dc - d, the sum of the two subtractions would be (a+c)−(b+d)(a + c) - (b + d), and their product, once expanded, (ac+bd)−(ad+bc)(ac + bd) - (ad + bc). This computation is not a proof, because it uses subtractions that do not yet exist; it serves to choose the definitions, in which only sums and products of natural numbers occur:

C(a,b)+C(c,d)=C(a+c,b+d)C(a, b) + C(c, d) = C(a + c, b + d)
C(a,b)⋅C(c,d)=C(ac+bd,ad+bc)C(a, b) \cdot C(c, d) = C(ac + bd, ad + bc)

The definition computes with representatives, and one and the same class has infinitely many of them. If changing the representative changed the result, the definition would define nothing: it would give several values for one and the same operation. It must therefore be proved that the result depends only on the classes; the operation is then said to be well defined.

TheoremThe sum and the product do not depend on the representatives

If the pairs (a,b)(a, b) and (p,q)(p, q) are equivalent, then, for every pair (c,d)(c, d), the pairs (a+c,b+d)(a + c, b + d) and (p+c,q+d)(p + c, q + d) are equivalent, and so are (ac+bd,ad+bc)(ac + bd, ad + bc) and (pc+qd,pd+qc)(pc + qd, pd + qc). Consequently, the sum and the product of two integers do not depend on the representatives chosen. It suffices to change one representative at a time: first that of the first addend or factor and then that of the second. The figure uses the representatives (3,1)(3, 1) and (4,2)(4, 2) of one and the same class, and the pair (1,2)(1, 2).

Proof

  1. a+q=b+p\dato{h}{a + q = b + p}

    We start from the hypothesis: (a,b)(a, b) and (p,q)(p, q) are equivalent.

  2. (a+c)+(q+d)=(a+q)+(c+d)=(b+p)+(c+d)=(b+d)+(p+c)(a + c) + (q + d) = \resaltar{(a + q)} + (c + d) = \resaltar{(b + p)} + (c + d) = (b + d) + (p + c)

    Sum: by associativity and commutativity, we regroup and substitute the hypothesis; the result is the condition of equivalence of (a+c,b+d)(a + c, b + d) and (p+c,q+d)(p + c, q + d).

  3. (ac+bd)+(pd+qc)=c(a+q)+d(b+p)(ac + bd) + (pd + qc) = \resaltar{c(a + q)} + \resaltar{d(b + p)}

    Product: we must prove that (ac+bd)+(pd+qc)(ac + bd) + (pd + qc) is equal to (ad+bc)+(pc+qd)(ad + bc) + (pc + qd). By distributivity, the left-hand side is grouped into two products.

  4. c(b+p)+d(a+q)=bc+pc+ad+qd=(ad+bc)+(pc+qd)c\resaltar{(b + p)} + d\resaltar{(a + q)} = bc + pc + ad + qd = (ad + bc) + (pc + qd)

    We substitute the hypothesis in the two parentheses and distribute again: we obtain the right-hand side.

  5. (ca+db,cb+da)=(ac+bd,ad+bc)(ca + db, cb + da) = (\resaltar{ac + bd}, \resaltar{ad + bc})

    To change the representative of the second addend or factor, it suffices to observe that the definitions are symmetric: by the commutativity of the natural numbers, the pair that defines C(c,d)⋅C(a,b)C(c, d) \cdot C(a, b) is the same as the one that defines C(a,b)⋅C(c,d)C(a, b) \cdot C(c, d), and the same happens with the sum.

  6. C(a,b)=C(p,q)→C(a,b)⋅C(c,d)=C(p,q)⋅C(c,d)C(a, b) = C(p, q) \rightarrow C(a, b) \cdot C(c, d) = C(p, q) \cdot C(c, d)

    Changing first one representative and then the other, the class of the result does not change: the sum and the product of integers are well defined.

The properties of addition and multiplication

With the operations well defined, each property of the integers is proved by computing with representatives, and each one inherits the property of the natural numbers that supports it. For all integers xx, yy and zz these properties hold:

  1. Commutativity and associativity of addition, inherited component by component from those of the natural numbers.
  2. Commutativity of multiplication, inherited from the commutativity of addition and of multiplication of the natural numbers, as in step 5 of the preceding proof.
  3. Associativity of multiplication and distributivity, inherited from the associativity, the commutativity and the distributivity of the natural numbers.
  4. Additive identity: the class C(1,1)C(1, 1), which contains all the pairs (m,m)(m, m).
  5. Opposite: for each class C(a,b)C(a, b), the class C(b,a)C(b, a), which is obtained by reflecting the pairs in the diagonal.
  6. Multiplicative identity: the class C(2,1)C(2, 1).

The last four are brief computations. For distributivity, both sides are expanded with the definitions and the same pair is obtained:

C(a,b)⋅C(c+e,d+f)=C(ac+bd+ae+bf,ad+bc+af+be)=C(ac+bd,ad+bc)+C(ae+bf,af+be)C(a, b) \cdot C(c + e, d + f) = C(ac + bd + ae + bf, ad + bc + af + be) = C(ac + bd, ad + bc) + C(ae + bf, af + be)

For the associativity of multiplication, the two ways of grouping C(a,b)⋅C(c,d)⋅C(e,f)C(a, b) \cdot C(c, d) \cdot C(e, f) give, after distributing, the same pair of sums of four terms:

C(ace+adf+bcf+bde,acf+ade+bce+bdf)C(ace + adf + bcf + bde, acf + ade + bce + bdf)

For the identities and the opposite it suffices to apply the rule for comparing classes: C(a+1,b+1)=C(a,b)C(a + 1, b + 1) = C(a, b), because (a+1)+b=(b+1)+a(a + 1) + b = (b + 1) + a; the pair (2a+b,a+2b)(2a + b, a + 2b), which defines C(a,b)⋅C(2,1)C(a, b) \cdot C(2, 1), is equivalent to (a,b)(a, b), because both sides of the condition equal 2a+2b2a + 2b; and C(a,b)+C(b,a)=C(a+b,a+b)C(a, b) + C(b, a) = C(a + b, a + b), which is the class of the pairs with two equal terms.

C(a,b)+C(1,1)=C(a,b),C(a,b)⋅C(2,1)=C(a,b),C(a,b)+C(b,a)=C(1,1)C(a, b) + C(1, 1) = C(a, b), \qquad C(a, b) \cdot C(2, 1) = C(a, b), \qquad C(a, b) + C(b, a) = C(1, 1)