Sect. 6.7 of the HoTT Book establishes in the context of CW complexes that
"we can obtain an n-dimensional path as a continuous family of 1-dimensional paths parametrized by an (n − 1)-dimensional object"
I hope I'm correct in taking this to be also the basic principle that allows to construct $S^n$ as iterated homotopy pushouts.
In analogy with "plain" geometric dimensions, we can maybe think of this as follows: The 2-dimensional plane can be described by a 1-dimensional line parametrized by another 1-dimensional line: For each x-coordinate, I'll give you a line of y-coordinates. This also brings to mind the idea of currying.
So it seems like a very fundamental fact that we can construct higher-dimensional objects by plugging lower-dimensional objects into each other, and I'm as a more syntactically minded type theorist would like to understand this better. Are there basic references in algebraic topology which provide an explanation of this?
Also, I presume this has been used utilized in the construction of higher-dimensional type theories, for instance, Cubical Agda defines the 3-dimensional path for the $S^3$ as some nested PathPs:
surf : PathP (λ j → PathP (λ i → base ≡ base) refl refl) refl refl
Does Cubical Agda get by with only 1-dimensional paths, or is there internally a direct representation of higher-dimensional paths?