The question seems to say that any Pythagorean triplet can be obtained this way uniquely. I can show that not all Pythagorean triplets can be so obtained. (I haven't addressed the uniqueness question.) Here's my proof.
Let P(a,b) be the Pythagorean triplet
x = a^2 - b^2
y = 2ab
z = a^2 + b^2.
Then it is easy to show that
f(P(a,b)) = P(2a+b,a)
g(P(a,b)) = P(2a-b,a)
h(P(a,b)) = P(2b+a,b).
Forget the P, just think of f,g,h as the linear transformations
f(a,b) = (2a+b,a), etc.
Now the original triplet (5,4,3) is the (a,b) pair (2,1). It is not hard to show that any (k,1) for k>=1 can be obtained from f,g,h. But I claim the (a,b) pair (3,2), that is, the triplet (5,12,13) cannot be obtained from (2,1) by applying f,g,h.
Prove by induction that if (a,b) is in the range of f,g,h starting from (2,1) then a>=2, a>=b>=1. Assume this condition. Then apply f or g or h, and use the formulas above to derive the conclusion for the new pair f or g or h of (a,b).
Now suppose (3,2) is in the range of f,g,h from (2,1). If the last function is f then for some (a,b)
2a+b=c and
a=2.
Therefore b=1 or 2 by the above inductively proven statement. Similarly for g. Now suppose h was last to be applied. Then for some (a,b)
2b+a=c and
b=2.
So c=a+4. So c cannot be 3 since a cannot be -1.
Added later: I now see how to prove uniqueness for a pair (x,y) in the range of f,g,h starting with (2,1). Look at the three formulas:
(x,y) = f(a,b)
(x,y) = g(a,b)
(x,y) = h(a,b).
Using the above equations, one can solve for a and b in each case. Recall that a must be >= b and both must be positive. This is what will tell us which of the three conditions apply.
If it's g, then b= 2y-x. Otherwise in the other two cases a or b is x-2y. So if 2y-x>=0 then the previous function must have been g. If 2y-x<0 it was f or h.
Now assume 2y-x<0. In the f case a=y and in the h case b=y. So if y>=x-2y it must have been f. If y
So an (x,y) pair which is made up of f,g,h from (2,1) can be traced back uniquely to (2,1), peeling off each application of f or g or h by using the above criteria.
So the application of f,g,h is unique.
One final point: Pythagorean triples like 9,12,15 which are not
P(a,b) for any a,b are also not in the range of f,g,h applied to (2,1).