I'm having a hard time understanding how the continuous notion of a path applies to homotopy type theory.
I understand that from topology, a path is a continuous function $f : [0,1] \to X$ from the unit interval in $\mathbb{R}$ to a space $X$. A homotopy can be defined as a path between two continuous functions.
In homotopy type theory, a path $p : a = b$ is a proof of equivalence between two points, $a$ and $b$. It's clear to me that the left endpoint of the path, at 0, would be $a$, and the right endpoint, at 1, would be $b$. But since this is a real interval, there must be some point at, say, $\frac{1}{2}$, or $\frac{1}{\pi}$.
For example, suppose that we have a type of arithmetic expressions. One point would be $2 + 1$ and another would be $3$. These should be equivalent, so there must be a path between them. I know what a proof of such a proposition would look like, in Peano arithmetic. But I have no idea how to conceptualize that as a function from the unit interval.
Perhaps the answer is: These paths in homotopy type theory are proofs, and there is no analogy to functions from the unit interval. But if there is no such analogy, then what's the use of invoking the idea of paths at all?