Delve into the Pythagorean theorem and its relevance to right-angled triangles.