Consider the following space :
How can we express mathematically the fact that it has two holes? For this we need the concepts of cycles and boundaries. In this section we will give an imprecise and informal discussion of these ideas. After that we will need to do some foundational work before we can get to a rigorous treatment. In outline: all boundaries are cycles, and many cycles are boundaries, but not all. Cycles that are not boundaries reveal the existence of holes.
Here is the space again with some additional markings:
The boundary of the path consists of the points and .
The paths , and are closed, so they have no boundary. Objects with no boundary are called cycles. Thus, , and are cycles.
If we look at a small piece of , then it looks the same as a small piece of , so we regard as being intrinsically -dimensional. Cycles of dimension are called -cycles, so , and are -cycles.
The boundary of the region is the path , so we can say that is a boundary. Here is -dimensional and is -dimensional so we say that is a -boundary. Similarly, is the boundary of an evident region that we have not named, so is another -boundary.
On the other hand, we cannot fill in the interior of without using points that are not part of our ambient space . Thus, with respect to the space , the cycle is not a boundary. This reflects the presence of the right-hand hole.
We regard points as -dimensional objects with no boundary, so and are -cycles.
Now consider the following picture:
Both and are cycles that are not boundaries, revealing the existence of a hole. However, and surround the same hole, so they should not be regarded as interestingly different. This corresponds to the fact that although and are not individually boundaries, the difference between them is the boundary of . In general, cycles should be considered equivalent if the difference between them is a boundary. This suggests that we should set up our detailed definitions so we have an abelian group of cycles and a subgroup of boundaries, and we should consider the quotient group . This group will be called , and the elements will be called (-dimensional) homology classes. Each element of is therefore a coset , where is a -cycle. We also use the notation for .
You might object that the boundary of is rather than , and that this creates a problem for our interpretation in terms of a quotient group. In fact, if we develop the details using only the ingredients discussed so far, then we end up with a group in which all elements have order , so and are the same. However, there is a more refined version in which every path has a direction, and is interpreted as the same path in the opposite direction, and there are similar considerations for objects of dimension greater than one. With appropriate conventions of this type, and with and oriented anticlockwise as indicated by the arrows, it works out that the boundary of is , so in .
As another example of how this works out, consider the following picture:
The boundary of is , so in . Similarly, it will work out that if is any loop that winds times around the left-hand hole and times around the right-hand hole then in . Using this we find that is isomorphic to , with one factor of for each hole.
We can also define a group along the same lines as . We will illustrate this with reference to the following space , which is the disjoint union of three subspaces , and .
The group is defined as . It will work out that is isomorphic to , with one copy of for each of the components , and . To explain this in more detail, we can annotate the picture as follows:
The points , and all count as -cycles, so they give homology classes . However, these are all the same. Indeed, the boundary of the path is , so , so the cosets and are the same, or in other words in . We can use the paths and in the same way to see that and . More generally, any point in has the same homology class as , any point in has the same homology class as , and any point in has the same homology class as . Thus, if is a -cycle consisting of points in , points in and points in then in . When we have a more precise set of definitions we will be able to show that the elements and actually give a basis for over , so as claimed.
So far we have treated paths in as subsets of , but this turns out to be technically awkward, especially if we need to deal with paths that cross over themselves or are fractal or have other unusual behaviour. In our formal definitions, we will instead define paths in to be continuous maps from the unit interval (or the -simplex , which is essentially the same) to .
Similarly, our -dimensional objects will not just be subsets of ; instead, they will be continuous maps from the space
to . For example, consider the pictures below.
In our informal discussion, we might have considered the region shown in the left-hand picture. In our formal treatment, we will instead consider the expression , where the maps are defined by
The image is the region marked in the right hand diagram.