Note:
Due to time constrains caused by holidays, most of this section is likely to be skipped during lectures or only treated informally. You can read the details here, but only things mentioned in the lectures are part of the evaluation.
Algebraically, I am interested in solving equations of the form
In , this will not always have a solution, for instance . How do I “add” the missing solution to produce a larger structure?
The set of integers is a quotient
I want to be able to talk about an object of the form from within the naturals. In the above example, such an object would indeed solve the equation, namely . I will encode this sought behavior by means of an equivalence relation defined as follows.
Definition.
- A difference is a pair .
- A difference is positive if , that is, there is such that .
- Two differences and are related under if .
Exercise.
Prove that is an equivalence relation.
Hint.
To show transitivity, you will need to use that addition in has the cancellation property. This course is not focused on algebra so I have not explicitly mentioned this, but it is one of the many properties that come with the naturals “out of the box.”
As an example, the difference is equivalent to , , etc. and represents the integer .
Lemma.
Suppose that is positive.
- If , then is also positive.
- There exists such that .
Definition (Integer).
An integer is an equivalence class of . I also denote .
A positive integer is an integer whose class is represented by a positive difference. (By the above lemma, if one representative is positive, then so are all of them, so this is well-defined.)
Since, by the above lemma, every positive integer can be written as for some positive natural , I will refer to said integer by just the variable . In other words, positive integers are identified as positive naturals. While it is incorrect to say that , this identification means I can abuse the language and say that the naturals are a subset of the integers. This is formalized by the theorem below.
Definition (Addition in ).
- Given two differences, and , their sum is .
- The sum of two integers is the class of the sum of its representatives.
Reflect.
There is something slightly incomplete in the second definition above. Which representatives? is the question you should be asking. Representatives are typically not unique, so how do you know you picked the right ones? Of course, in the end it does not matter and the resulting sum will be the same, but this is something that requires proof in a formal construction.
I skip the details that are analogous to addition.
Definition (Multiplication in ).
Reflect.
If you find the definition arbitrary, recall that the integer is meant to represent the new object "".
Lemma.
The addition and multiplication of integers is well-defined, associative, commutative and distribute over each other. (Definition for all these words is found here.)
The integers contain the naturals
In this section I formalize the idea that the naturals are inside of the integers.
Theorem (Embedding of in ).
There is an injective function that preserves the algebraic and order structures of . Concretely, for all naturals and ,
- ;
- ; and
- if , then .
Proof:
Take and verify the rest yourself.
Finally, I reveal the reason I introduced this new structure in the first place.
Theorem.
If and are integers, then there is a unique integer such that .
I denote the integer by the symbol .
Proof:
Simply take where and similarly for .
Congratulations! You have learned to subtract numbers.