The Pythagorean Theorem and the Solid State