As example, we're using the proof that there's a path between homotopy1
and homotopy2
from Exercise 4.
Instead of looking at a circle, let's look at a general path
A path is a continuous function of type
We can say that path concatenation splits the image in two halves and compresses each of the two paths, so e.g.
And the first endpoint of homotopies 1 and 2,
Note how the second instance of
Let's define
homotopy1 : (loop ∙ ! loop) ∙ loop ≡ loop
homotopy1 = (loop ∙ ! loop) ∙ loop ≡⟨ ap (_∙ loop) (!-inv-r loop) ⟩
refl _ ∙ loop ≡⟨ ∙unit-l loop ⟩
loop ∎
Though note again that we're using
This means we first transform the left part of the path into refl
, and then transform it such that
We can visualize this as one two-dimensional continuous path:
We can take any horizontal slice of this image and it should still be a valid path from
is a path that starts at
Note that the left and right edges in this square should stay constant - otherwise, the horizontal slices wouldn't be paths between
We can do the same with the other homotopy:
homotopy2 : (loop ∙ ! loop) ∙ loop ≡ loop
homotopy2 = (loop ∙ ! loop) ∙ loop ≡⟨ ! (∙assoc loop (! loop) loop) ⟩
loop ∙ (! loop ∙ loop) ≡⟨ ap (loop ∙_) (!-inv-l loop) ⟩
loop ∙ refl _ ≡⟨ ∙unit-r loop ⟩
loop ∎
means
Or, as one image:
In the exercise, we were supposed to prove that homotopies 1 and 2 are equal. We can do this by showing that there's a continuous transformation between them:
Here, too, all (four) edges should stay as they are, we're only changing the interior of the square.
As before, we can take any slice of this and it will be another valid homotopy, e.g.
goes via paths that move towards the middle of
Let's look at this again, but with
Let's say the
Note that we have to move through two colors (other than black), to ensure that
The rest works much the same, so homotopy 1 is
and homotopy 2 is this:
A possible transformation between them looks like this:
These are some nice examples of when paths are homotopic, but when are they not?
To illustrate, let's define one particular version of the 2-Sphere:
We can take the loop and add two paths, both from
Let's say the upper hemisphere moves through yellow:
and the lower hemisphere moves through fuchsia:
When looking at these, remember that only the bottom edge is
If we really want to have a sphere, rather than a ball or a disk, we must not be able to construct a continuous transformation between these hemispheres.
Now, you might be thinking, that's easy - just crossfade between the images:
That seems to work - but we move through colors that aren't on any path we've defined:
This is neither yellow nor purple, and thus neither on the upper nor the lower hemisphere. Effectively, we can't just move through empty space - our transformation has to stick to the surface we have.
When you see an image like this, of
You might think you should be able to transform that into an image that has
However, we wouldn't expect to be able to show that there's a path between
If I actually try to do this in the script I've been using to visualize these instead of faking it, this is what I get:
Note how it changes the color of the border, which means in the middle, we actually have a path from
Maybe you think that the fake path looks suspiciously similar to the cyan-blue region in the background in the hemisphere paths from above - and you'd be right. The difference is that there, we are defining new paths, so we can use new colors, rather than ones we've used before.
Another consequence of this is that for the hemispheres, you cannot crossfade from yellow to black to fuchsia, since then you'd again have a transition from a blue-cyan mixture to black.