TITLE: How to characterize the metrical relations in the uniform (4 4 4) tiling of the hyperbolic unit disk from a purely analytic point of view?
QUESTION [5 upvotes]: I wonder how can one describe the generators of the triangle group for the tesselation of Poincare unit disk by triangles with angles $\pi/4, \pi/4 , \pi/4 $ in terms of Mobius transformations. I also wonder how one can describe the metrical relations of such a network without using the conception of the unit disk as model for hyperbolic geometry; that is, by purely analytic methods, as Gauss probably did.
I'm not very familar with the theory of hyperbolic tesselations, so there may be inaccuracies in my understanding and even with the specific terminology i use.
Side remark:
My purpose is to verify an historical hypothesis i have on Gauss's tesselation of the unit disk as described in John Stilwell "Mathematics and its history". Looking at the relevant pages in Gauss's Nachlass (volume 8, p.102-105), I read that the commentor (Robert Fricke) on this fragment of Gauss says that Gauss's drawing (the (4 4 4) tesselation) is intended to be a geometrical illustration for composition of substitutions other then the fundamental generators of the modular group. The following sentences are a citation of Fricke about the substitutions Gauss used:

Gauss has repeatedly dealt with composition of other substitutions of the group defined from these generators. In addition to the information in fragment [i], the following formula should also be mentioned $$\frac{[\alpha, \beta,\dots,v]\theta + [\beta,\gamma,\dots,v]i}{-i[\alpha,\beta,\dots,\mu]\theta+[\beta,\gamma,\dots,\mu]}$$
which can be found in a booklet entitled “Cereri Palladi Junoni sacrum, Febr.  1805”. The continued fraction expansions of the two substitutions are given as examples:$$\frac{128\theta + 37i}{-45i\theta + 13}$$ $$ \frac{121\theta+36i}{-84i\theta+25}$$

Just to explain the words of Fricke, "the group defined from these generators" is the modular group (since the generators mentioned before this sentence are addition of $i$ and inversion with respect to the unit circle), and the $[,,\dots,]$ is the "Gaussian Brackets" notation (which Gauss defined in article 27 of Disquisitions Arithmeticae, and is connected directly to continued fractions). I think $\theta$ is just a notation for the complex variable that is transformed under the Mobius transformation.
Checking the determinants of these substitutions gave $-1$ for the first one and $+1$ for the second one, so this made me suspect that these are isometric Mobius transformations (the only thing that doesn't settle is that $a,b,c,d$ in the Mobius transformation should be real integers, not imaginary integers). One should also notice that the second Mobius transformation can be rewritten as:
$$\frac{121\theta+36i}{-84i\theta+25} = \frac{[3,2,1,3,3]\theta+[2,1,3,3]i}{-[3,2,1,3,2]i\theta+[2,1,3,2]}$$
, in exact accordance with Gauss's formula which uses the Gaussian Brackets notation (here $\alpha=3, \beta=2,\gamma=1, v=3, \mu=2$).
In addition, the diagonal elements of the second Mobius transformation ($121$ and $25$) are both reduced to $1$ modulo $12$, while the off-diagonal elements reduce to $0$ modulo $12$ (if one allows imaginary sizes for $b,c$). In other  words, this shows that the second Mobius transform belongs to a congruence subgroup of level 12 in $SL_{2}(Z[i])$.
Although it seems at first that these Mobius transformations are just examples of a general principle of certain continued fractions developement, immediately after that Fricke says:

Both to explain the continued fraction development of the substitutions and to draw conclusions from the theory of functions, Gauss made use of the geometrical representation which has become the basis of the more recent theory of module functions. In the booklet just mentioned, Gauss drew the figure shown here. Since the above-mentioned continued fraction expansions of substitutions are also to be found, Gauss must have used the figure as a means to illustrate these continued fraction expansions. In fact, one has here the beginning of the well-known network of circular arc triangles, which is the basis of the theory of modulus functions. It's evident that Gauss generally understood the "principle of the symmetrical multiplication of curved triangles", which comes into consideration here, and even the character of the "natural limit" of a triangular network to be obtained in this way did not remain hidden... These are circular arc triangles of the angles $\frac{\pi}{4},\frac{\pi}{4},\frac{\pi}{4}$, and the orthogonal circle highlighted in the drawing represents their natural limit.  In addition to the drawing, the following information was written by Gauss:
"Center of the first circle: $2^{\frac{1}{4}}$, radius of the first circle: $\sqrt{\sqrt{2}-1}$, center of the second circle: $\frac{1}{2}(\sqrt{\sqrt{2}+1}+\sqrt{\sqrt{2}-1})$, radius of the second circle:$\frac{1}{2}(\sqrt{\sqrt{2}+1}-\sqrt{\sqrt{2}-1})$.

Therefore, it seems that these Mobius substitutions are actually the generators for the (4 4 4) tiling of the hyperbolic disk.  But this conclusion is a result of a very shallow reading of Fricke's comments and i lack the proffesional knowledge needed to verify my reading. In addition, there are two drawings in these pages (one on p.103 and the Gauss's tesselation on p.104), and i'm not sure to which drawing Fricke refers.
Historical significance of Gauss's results:
Being the first drawing of it's kind, the tessellation drawed by Gauss and his related results have planted some the seeds of Felix Klein's "Erlangen program" (with the other influences being Galois's theory of equations and Riemann's geometric ideas). Klein read Gauss's fragments very closely and seems to have been influenced by them, so i think it's not an exaggeration to say that Gauss's drawing was one of his sources of inspiration. Therefore i believe that for a correct historic appreciation of the roots of Erlangen program, it's important to know wethever the substitutions written by Gauss are related to his drawing or not.
Concerning the results stated by Gauss on the location and radiuses of the centres of the first and secondary circles in his tessellation, my posted answer already confirms them (although it might not be the original method of Gauss). The main issue that remains to be resolved is therefore the meaning of the Mobius transformations.
Questions
Since my question didn't get any response for a few months, I'll try to focus it:

Are there any online programs that get as an input an element of the modular group and returns as output a representation of this element in terms of the generators $S,T$ of the modular group (as a word in S, T)? I need this in order to check several things about the Mobius transformations from Gauss's notebook.

Is there a purely analytic way of arriving at Gauss's formulas for the radiuses of curvature of the first and second generation circles in his uniform tiling of the unit disk? I ask that because the derivation presented in my answer assumes that Gauss essentialy knew the Poincare disk model of the hyperbolic plane, an assumption that i find unprobable (the disk model is essentially a conformal model of the hyperbolic plane, and Gauss didn't think about conformal mappings until at least 1815). It's more likely that he arrived at this result in the context of his analytic investigations on fundamental domains and the action of modular group, and not in the context of his "meditations" on non-Euclidean geometry.


Update (September 25, 2021)
Since all my efforts up to now were fruitless, I think I need to change direction of thought. I think that since the fundamental triangle in Gauss's drawing (with angles $\pi/4,\pi/4, \pi/4$) is not related in any way to the fundamental domain of the modular group, the only way to explain the correctness of Gauss's results on the metrical relations in this network (from analytic point of view) is to assume it was derived from some form of automorphic function. Automorphic functions are a generalization of modular functions in which the acting group can be any general triangle group, and not just the modular group (which has structure of the $(2,3,\infty)$ triangle group).

REPLY [3 votes]: This is a very partial answer that is intended to verify only some of the many statements in Gauss's fragment - the four statements about the network of curved triangles. In order to facilitate the whole deduction of Gauss's formulas as presented in this answer, i added the original drawing of Gauss (to help visualize the geometric relations).

Radius and distance of the center of the first circles:
Theorem: Each of the eight curved triangles with one vertex at the origin $(0,0)$ of the Poincare unit disk has two straight sides which are portions of diameters of this disk and one curved side which is a portion of a circle orthogonal to the unit circle. The center of curvature of this orthogonal circle is at distance $2^{\frac{1}{4}}$ from the origin and it's radius of curature is $\sqrt{\sqrt{2}-1}$ (as in Gauss's fragment).
Proof:
The length $a$ of a side of an equilateral hyperbolic triangle with angles $\alpha=\pi/4,\beta=\pi/4,\gamma=\pi/4$ in the "real" hyperbolic plane (not the euclidean distance in the Poincare disk model of it) is according to the laws of hyperbolic trigonometry:
$$cosh(a) = \frac{cos\alpha}{1-cos\alpha} = \frac {1}{\sqrt{2}-1} = \sqrt{2}+1\implies tanh(a) = \sqrt{2}\sqrt{\sqrt{2}-1}\implies a = \frac{1}{2}ln(\frac{1+\sqrt{2}\sqrt{\sqrt{2}-1}}{1-\sqrt{2}\sqrt{\sqrt{2}-1}})$$
The relation between the "euclidean" distance $r$ between each of the other two vertexes to the origin and the corresponding real hyperbolic distance $a$ is, according to the formulas of Cayley-Klein metrics:
$$ln(\frac{1+r}{1-r}) = a \implies \frac{1+r}{1-r} = \sqrt{\frac{1+\sqrt{2}\sqrt{\sqrt{2}-1}}{1-\sqrt{2}\sqrt{\sqrt{2}-1}}}\implies r = \sqrt{\sqrt{2}-1}$$.
Therefore the coordinates of the two other vertexes, after aligning the x-axis with one of the straight sides of the curved triangle, are:
$$(\sqrt{\sqrt{2}-1},0),(\frac{\sqrt{\sqrt{2}-1}}{\sqrt{2}},\frac{\sqrt{\sqrt{2}-1})}{\sqrt{2}})$$.
Now the equation of any circle orthogonal to the unit circle is of the form:
$$x^2+y^2+ax+by+1 = 0$$
Substituting the x,y coordinates of the two points, one gets two linear equation with variables $a,b$, whose results are:
$a = -\frac{\sqrt{2}}{\sqrt{\sqrt{2}-1}}, b = a(\sqrt{2}-1)$
Since the canonic form of the equation of the orthogonal circle is:
$$(x+a/2)^2+(y+b/2)^2= \frac{a^2+b^2}{4}-1$$
, one gets the desired theorem by an easy calculation. Q.E.D
Radius and distance of the center of the secondary circles:
The principle of generation of the curved triangles network is, as with all tesselations of the plane (whetever it's geometry is euclidean, hyperbolic or spherical), the successive reflection of the triangles with respect to their sides; in this way we fill the whole plane with triangles. In euclidean geometry, one can generate the tiling by simply reflecting the triangles with respect to the sides; however, in hyperbolic geometry one needs to generalize the notion of reflection from reflection with respect to line to reflection with respect to a circle.
The notion required is therefore that of inversion with respect to a circle; the secondary circular arcs (of the "second generation triangles") are inversions of the straight sides of the "first generation triangles" with respect to the first circular arcs. The formula for the radius $r'$ of the inversion of a circle with radius $r$ with respect to a smaller circle with radius $k$ whose center is at distance $d$ from the center of the inverted circle is:
$$r' = \frac{k^2r}{d^2-r^2} = \frac{k^2}{d^2/r-r}$$
In our problem: $k = \sqrt{\sqrt{2}-1}, d^2 = r^2+x^2 -2xrcos(5\pi/8), x = \sqrt{\sqrt{2}}, -cos(5\pi/8) = sin(\pi/8) = \sqrt{\frac{1-\frac{1}{\sqrt{2}}}{2}} $.
In this notation, $x$ is the distance of the center of the first circles from the origin, and $d$ is derived using the euclidean cosine theorem. One needs to calculate $r'$ in the limit where $r$ tends to infinity since the straight sides of the first triangle can be thought of as circles with infinite radius.
Therefore:
$$r' = lim_{r\to \infty}\frac{(\sqrt{\sqrt{2}-1})^2}{(r^2+x^2 -2xrcos(5\pi/8))/r - r} = \frac {\sqrt{2}-1}{-2xcos(5\pi/8)} = \frac{\sqrt{2}-1}{(\sqrt{2-\sqrt{2}})\cdot\sqrt{\sqrt{2}}} = \frac{\sqrt{2}-1}{\sqrt{2(\sqrt{2}-1)}} = \frac{\sqrt{\sqrt{2}-1}}{\sqrt{2}}$$
one can easily verify that the result for $r'$ is equal to the formula given by Gauss (simply by squaring both sides). The result for the distances $x'$ of the centers of the secondary circles from the origin is then easily obtained if we keep in mind that, for any $n$th generation circles: $x^2_n-r^2_n = 1$.
Final remarks:
Besides one step of the calculation (the use of Cayley-Klein metric), the whole procedure of generation of this curved triangles network can be viewed through euclidean eyes; one needs the concept of inversion of circle in a smaller circle to get a recursive definition of the network. However, Gauss deliberately gives sizes of the first triangles that correspond to tessellation of the unit disk (and not, for example, to a disk of radius 2), and i can't see any way to calculate the required size of the first triangles (required in order to make the unit circle the natural border of this network) without using the conception of the Poincare disk model of the hyperbolic plane.
Therefore, this (very partial!) reconstruction of Gauss's results uses the much later terminology of models of hyperbolic plane, and makes far-reaching assumptions on Gauss's insights into non-euclidean geometry. I suspect there might be other ways by which Gauss stated this result, perhaps by his analytic insights into the j-invariant.