Pythagorean Theorem on the Tech Tree