What is the ring of integers of the Pythagorean field? Following Hilbert, we call the complex numbers constructible via
compass and straight-edge the field of Euclidean numbers, and
the totally real such numbers the field of Pythagorean numbers.  (Among other possible definitions, an algebraic number is totally real if its minimal polynomial has all real roots).  For a reference, Richard Alperin gives a description of these and related fields from a constructibility viewpoint in his paper "Trisections and Totally Real Origami."
There is a remarkably nice characterization of the Pythagorean numbers
-- the Pythagorean field is the smallest field containing the
rationals and closed under the operation $x\rightarrow \sqrt{1+x^2}$.  Or, from an only slightly different viewpoint, it is the Pythagorean closure of $\mathbb{Q}$, in the sense of
Link
Because it's a nice "hands-on" intro to this field, let me include in the question Daniel Litt's comment below that since $\sqrt{2}=\sqrt{1+1^2}$, and $\sqrt{3}=\sqrt{1+\sqrt{2}^2}$, and so on, the Pythagorean field contains $\sqrt{n}$ for all $n\geq 0$, and hence contains the compositum of all real quadratic fields.
My Question:

What is the ring of integers of the Pythagorean field?

Note that the most naive guess of it being the smallest subring of algebraic integers closed under the operation $x\rightarrow \sqrt{1+x^2}$ is incorrect -- this ring does not include $\frac{1+\sqrt{5}}{2}$, which is certainly a totally real Euclidean algebraic integer.  I suspect/hope (though this may just be the second most naive guess) that there's some description of the form "smallest subring of the algebraic integers closed under $x\rightarrow \sqrt{1+x^2}$ and division by 2 when certain conditions are met."  I've done a little bit of a literature search on rings of integers of totally real multiquadratic extensions of $\mathbb{Q}$, but haven't found anything even remotely inspiring something of this form.
I don't have much to offer in terms of motivation, except that I have come across a variety of rings of integers in my research, and I'm trying to decide if any are exactly the ring of Pythagorean integers.  It would be nice to be able to compare them to the Pythagorean integers just by seeing whether or not one of these rings satisfies certain closure operations.
 A: The first idea I tried to look at was replacing the iteration by
$$ x \mapsto  x' = \frac{1 + \sqrt{1+4x^2}}{2}, $$
which eliminates the problem with $\frac{1+\sqrt{5}}{2}$; on the other hand I cannot see that e.g. the integral element $\frac{1 + \sqrt{3}}{\sqrt{2}}$ lies in the ring generated by this iteration.
By modifying this approach we can eliminate all obvious counterexamples. Define $v_0 = 2$ and 
$$  v_1 = \sqrt{2}, v_2 = \sqrt{2+\sqrt{2}}, ...., v_{n+1} = \sqrt{2+v_n}, ... . $$
Given an algebraic integer $x$ in the Pythagorean ring, let $v(x)$ denote the "maximal" product of elements $v_i$ dividing both $2$ and $x$ (I guess that a proof of the existence of $v(x)$ is not too hard; Krull, Herbrand and Scholz studied the arithmetic in these "infinite number fields" in the 1930s, and their methods should suffice). Then the iteration
$$ x \mapsto x' = \frac{1+x + \sqrt{1+x^2}}{v(x)} $$
sends algebraic integers to algebraic integers, and this map has at least a chance of
generating the ring of all integers in the Pythagorean field. 
