Question: is maths discovered or invented?
Answer: This is true for all right-angled triangles on a level surface, so it's a discovery. Showing it is true, however, requires the invention of a proof. And over the centuries, mathematicians have devised hundreds of different techniques capable of proving the theorem. In short, maths is both invented and discovered.