Extents (work in progress)

TODO: This is closely related to the idea of Torsors, and the difference between affine points being vectors.

Numbers and geometry are foundational to mathematics, and how we explain and understand various phenomena. We can relate these concepts in two important, but distinct, ways: as positions or as extents.

Position versus extent

Consider the useful picture of a number line:

┌──┬──┬──┬──┬──┬──┬─⋯
0  1  2  3  4  5  6

This shows numbers as positions quite directly: the number four ‘is’ the position (or point) labelled 4.

The extents in this picture are a bit more abstract: we can find them by ‘cutting’ the line at the relevant label; e.g. cutting at the label 4 gives the following:

┌──┬──┬──┬──┐
0  1  2  3  4

Whilst this is a perfectly good length, the idea of ‘extent’ that I’m after needs two more things…

Extents are relative

We will consider the line to be our extent, not the points or labels. Hence all of the following are the same extent:

┌──┬──┬──┬──┐
0  1  2  3  4

┌──┬──┬──┬──┐
1  2  3  4  5

┌──┬──┬──┬──┐
32 33 34 35 36

Hence we can drop the labels, to get a line like ┌──┬──┬──┬──┐