I have a basic question about the Euclidean metric. I am assuming that I have a Euclidean plane represented by $\mathbb{R}^2$, and that measuring distances on lines parallel to the 'axes' is defined by making it same as distance on $\mathbb{R}$. I am also assuming that the 'axes' are 'perpendicular', otherwise we cannot even start. What I want to define is the distance between two points $(x_1,y_1)$ and $(x_2,y_2)$, such that it corresponds to the distance 'in real life' or in a rough sense, taking a scale and putting it end to end between the two points. It is said that the pythagorean formula provides a way to define a distance that corresponds to this. But I have two questions regarding the validity of the proofs of the pythagorean theorem in this minimalistic setup:
The first one is the rearrangement type of proof, which relies on taking a right angled triangle and embedding it in a bigger square and then moving around pieces. There the question occurs to me is that from where are we getting the fact that the 'rotated' piece remaining after moving these figures around is a 'square' with all sides 'same length c', and that its area is $c^2$? That seems circular (in the logic sense) to me because a square cannot even be defined without having the property that all its 'side lengths' are same, and we don't even have a notion of length for the plane yet! Am I missing something? I know we can set up notions of area for arbitrary sets using measure for instance but what I fail to understand is how do we get the fact that the rotated piece is indeed 'congruent' as a square whose sides are parallel to the axes, without defining congruence through the pythagorean theorem.
The second type of proof I have seen is the one which uses similarity. It uses the notion of angle, which seems to me there is no way of even defining without already having a notion of distance in place? Is there a way to understand it that avoids this circularity? Or even have congruent transformations without having the notions of distance in place?