I was answering a question about why the Penrose triangle is impossible when I realized I haven't seen a coordinate proof that the angles of a triangle in $\mathbb{R}^n$ add up to $180^\circ$. I know the synthetic geometry proof for $\mathbb{R}^2$ based on drawing a line through one corner parallel to the opposite base, but is there a 'nice' [non-computationally obnoxious] way of directly verifying the following vector identity:
Theorem: Let $P, Q, R$ be three distinct points in $\mathbb{R}^n$, and let $\vec{x} = \vec{PQ}$, $\vec{y} = \vec{QR}$, $\vec{z} = \vec{RP}$ (note order). Then
$$\cos^{-1}\left(-\frac{\vec{x} \cdot \vec{y}}{|\vec{x}||\vec{y}|}\right)+\cos^{-1}\left(-\frac{\vec{y} \cdot \vec{z}}{|\vec{y}||\vec{z}|}\right)+\cos^{-1}\left(-\frac{\vec{z} \cdot \vec{x}}{|\vec{z}||\vec{x}|}\right)=\pi,$$
or equivalently [since $\cos^{-1}(a) = \pi - \cos^{-1}(-a)$],
$$\cos^{-1}\left(\frac{\vec{x} \cdot \vec{y}}{|\vec{x}||\vec{y}|}\right)+\cos^{-1}\left(\frac{\vec{y} \cdot \vec{z}}{|\vec{y}||\vec{z}|}\right)+\cos^{-1}\left(\frac{\vec{z} \cdot \vec{x}}{|\vec{z}||\vec{x}|}\right)= 2\pi?$$
The closest I've seen is this argument, but it hinges on the multiplicative properties of $\mathbb{C}$, so it only works in 2 dimensions. [A quaternion-based proof in $\mathbb{R}^4$, or an octonion-based proof in $\mathbb{R}^8$, while not fully answering my question, would certainly be interesting to see!]
Remark: Obviously one could argue that any triangle "lives" in 2D, in the sense that there's a 2D plane passing through any 3 points in $\mathbb{R}^n$. However, rather than use this crutch from synthetic geometry as a jumping off point or deus ex machina, I'm asking for a coordinatized proof/vector algebra proof that is as explicit as possible in $n$ dimensions generally, as opposed to one that starts by establishing the 2D case, and then hand-waves that the general case is equivalent/reducible to the 2D one.
This specifically excludes arguments that begin, "Without loss of generality, suppose $P, Q, R \in \mathbb{R}^2 \times \{ \vec{0} \} \subset \mathbb{R}^n$...."
The other synthetic geometry assumption I would prefer to avoid directly relying on is: "Given a line $\ell$ in $\mathbb{R}^n$ and a point $P$ not on line $\ell$, there is exactly one line through $P$ parallel to $\ell$."