In a discussion with a math friend and colleague, I was asked to find the angle $APB$ in an equilateral triangle if $AP=3$, $BP=4$ and $CP=5$. In solving this question I rediscovered that the same angle is always found when $a$, $b$ and $c$ satisfy the Pythagorean theorem.
But I rediscovered another, very surprising theorem.
In an equilateral triangle, the following is true:
$$L^2=\frac{1}{2}(a^2+b^2+c^2)+2{\sqrt{3}}Area_{\triangle _{(PA,PB,PC)}}$$

I was able to prove this by using two times the cosine rule and expressing $Area_{\triangle _{(PA,PB,PC)}}$ by applying Héron's rule. (And using this theorem, the property mentioned first is easy to prove.)
My question is: is this a known theorem? Does it have a name?


The wikipedia article about Pompeiu's theorem mentions this: