Growth of values of binary quadratic forms and Conway rivers
K. Spalding, A.P. Veselov

TL;DR
This paper investigates the growth rates of binary quadratic form values along Conway's tree, revealing a connection to Markov numbers and identifying special paths where growth halts, with implications for Galois theory and continued fractions.
Contribution
It establishes a relationship between Lyapunov exponents of quadratic forms and Markov number growth, highlighting the unique behavior along Conway rivers.
Findings
Lyapunov exponents are twice those for Markov number growth.
Along Conway rivers, the Lyapunov exponent is zero.
The results connect quadratic form growth to Galois theory and continued fractions.
Abstract
We study the growth of the values of binary quadratic forms on a binary planar tree as it was described by Conway. We show that the corresponding Lyapunov exponents as a function of the path determined by are twice the values of the corresponding exponents for the growth of Markov numbers \cite{SV}, except for the paths corresponding to the Conway rivers, when The relation with Galois results about continued fraction expansions for quadratic irrationals is explained and interpreted geometrically.
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Growth of values of binary quadratic forms and Conway rivers
K. Spalding
Department of Mathematical Sciences, Loughborough University, Loughborough LE11 3TU, UK
and
A.P. Veselov
Department of Mathematical Sciences, Loughborough University, Loughborough LE11 3TU, UK and Moscow State University, Moscow 119899, Russia
Abstract.
We study the growth of the values of integer binary quadratic forms on a binary planar tree as it was described by Conway. We show that the corresponding Lyapunov exponents as a function of the path determined by are twice the values of the corresponding exponents for the growth of Markov numbers [10], except for the paths corresponding to the Conway river, when The relation with the Galois result about pure periodic continued fractions is explained and interpreted geometrically.
1. Introduction
In his book “The Sensual (Quadratic) Form” Conway [1] described the following “topographic” way to visualise the values of a binary quadratic form
[TABLE]
with integer coefficients on the integer lattice
Following Conway we introduce the notions of the lax vector as a pair , and of the superbase of the integer lattice as a triple of lax vectors such that is a basis of the lattice and
[TABLE]
It is easy to see that every basis can be included in exactly two superbases, which we can represent using the binary tree embedded in the plane (see Figure 1). The lax vectors live in the complement to the tree (we show only one representative of them), while the superbases correspond to the vertices.
By taking values of the form on the vectors of the superbase, we get what Conway called the topograph of containing the values of on all primitive lattice vectors. In particular, if we have the values
[TABLE]
One can construct the topograph of starting from this triple using the following property of any quadratic form, which Conway called the arithmetic progression rule and is known also in geometry as the parallelogram rule:
[TABLE]
Note that quadratic forms (in any dimension) can be characterised as the degree 2 homogeneous functions satisfying relation (2). This leads to the following relation on the topograph of (see Fig. 2), which can be used to compute the primitive values of recursively.
In particular, for the standard quadratic form we have the tree of which half is shown on the left of Fig. 3. On the right side of Fig. 3 we show the positive part of the corresponding Farey tree, where at each vertex we have the fractions and its Farey mediant (see e.g. [3, 10]), starting with
Using the Farey tree we can identify the infinite paths on a binary tree with real numbers (more details in the next section). For example, for the golden ratio we have the Fibonacci path shown in bold on both trees of Fig. 3.
We would like to study the growth of the values of along the path . More precisely, define
[TABLE]
where
[TABLE]
with being the -th topographic triple on the path
For example, for the Fibonacci path with we have being every second Fibonacci number with the growth
[TABLE]
We will show that a similar result is true for any positive binary quadratic form , namely that
[TABLE]
where is the function introduced in [10] describing the growth of the Markov numbers, or, equivalently, the growth of the monoid .
The monoid consists of matrices from with non-negative entries. These can be seen on the edges of the Farey tree if we combine two neighbouring fractions into the matrix
[TABLE]
Let be the eigenvalues of , which are real numbers with
The function can be defined as
[TABLE]
where is attached to the -th edge along path and
[TABLE]
is the spectral radius of the matrix (see [10]).
The function can be extended to and has very peculiar properties: it is discontinuous everywhere, takes all real values from and is invariant under the projective action of on (see [10]).
The situation is different for indefinite binary quadratic forms. The reason is the existence of what Conway [1] called the river, which, in the case of the forms not representing zero, is an infinite path on the binary tree separating positive and negative values of the form (see Fig. 4).
Let be the two real roots of the corresponding quadratic equation
[TABLE]
Our main result says that for an indefinite form not representing zero
[TABLE]
with For example, for we have with
[TABLE]
We will show that the two exceptional paths with zero growth are exactly those leading to the two ends of the Conway river (see Fig. 6 below).
We also discuss in more detail the geometry of the corresponding exceptional paths in relation to the continued fraction expansions of the quadratic irrationals . The Galois result about pure periodic continued fractions [2] naturally appears in this way.
In the case when indefinite form does represent zero (which means that its discriminant is total square) the roots are rational, so and for all in this case. The same is true for the semidefinite forms with discriminant zero.
2. Paths in a binary planar tree, negative continued fractions and Galois theorem
Let us first describe in more detail the correspondence between and paths in the planar binary rooted tree shown on the right of Fig. 3. Indeed, the corresponding Farey tree has a unique path for any irrational positive such that the limit of the adjacent fractions is (for rational such a path is finite and leads to the corresponding fraction).
In terms of the corresponding continued fraction expansion
[TABLE]
the path starts from the root and can be described as left-turns on the tree, followed by right-turns, followed by left-turns, etc.
For every oriented edge adjacent to two Farey fractions , we assign the unimodular matrix
[TABLE]
Then the corresponding matrix is the product of the first matrices along the path :
[TABLE]
where
[TABLE]
The matrices and freely generate the monoid , which is the positive part of the group , acting on the planar binary rooted tree by left and right turns respectively.
We would like to extend this correspondence to the full binary planar tree, which is known to be the dual tree for the Farey tesselation (see e.g. Hatcher [3] and left side of Figure 5).
In particular, we see from this figure that for the reflected path the corresponding matrix is
[TABLE]
where is given by (8) and for an edge in the bottom half of the Farey tree with two adjacent Farey fractions , we assign the matrix
[TABLE]
To be consistent with this it is natural to consider for negative real numbers with positive the negative continued fraction expansions
[TABLE]
Note that one can always avoid the negative with because of the identity
[TABLE]
but we are not going to do this.
This is related to the following result discovered by the 18-year-old Évariste Galois. The famous Lagrange’s theorem [7] says that any quadratic irrational has a periodic continued fraction expansion and conversely, any periodic continued fraction represents a quadratic irrational.
Less known is the following addition due to Galois [2] characterising pure periodic continued fraction expansions
[TABLE]
Theorem (Galois). A quadratic irrational has a pure periodic continued fraction expansion
[TABLE]
if and only if its conjugate satisfies the inequality
[TABLE]
Moreover, in that case
[TABLE]
As we will see later, geometrically the conjugate determines the path going backwards along the corresponding Conway river.
3. Continued fraction expansion of quadratic irrationals and their conjugates
To describe our main result we need an answer to the following natural question. Assume that we know the continued fraction expansion of a quadratic irrational
[TABLE]
What is the continued fraction expansion of its conjugate ?
For example, we have
[TABLE]
What is the general rule here?
We could not find the answer to this question in the literature, except in the Galois case, so we present it in this section.
Note first that we can assume that in (11) , because otherwise can be rewritten with the period .
Proposition 1**.**
Let be the continued fraction expansion of a quadratic irrational with , and Then the continued fraction expansion of its conjugate is
[TABLE]
If , , then
[TABLE]
Here it will be convenient for us to allow the zeros in the continued fraction expansion, which can be always avoided using the identities
[TABLE]
[TABLE]
In particular, in the example (12) the formula (14) gives for
[TABLE]
A more sophisticated example:
[TABLE]
[TABLE]
Proof.
It is enough to consider the case . Let us first define
[TABLE]
Then, by definition,
[TABLE]
so that
[TABLE]
Using the Galois result and identity (10) we have
[TABLE]
where
We can now directly compute
[TABLE]
[TABLE]
[TABLE]
[TABLE]
[TABLE]
This completes the case In the case we have by (15),
[TABLE]
and the result then immediately follows from the previous case with replaced by [math] and replaced by . ∎
Note that formulae (13),(14) determine involutions since for we have
[TABLE]
while otherwise
[TABLE]
Let us consider now the special case
Proposition 2**.**
Let with . Then the conjugate can be given as the negative continued fraction expansion
[TABLE]
When we have
[TABLE]
Proof.
We have
[TABLE]
so by the Galois result
[TABLE]
In the case when , we can rewrite
[TABLE]
and proceed as in the case when to get the formula (18). ∎
Note that only in the Galois pure periodic case and in the case with do we have to use negative continued fractions. We will see now that these are the only cases when the initial position is on the Conway river.
4. Paths to Conway river
Let
[TABLE]
be an indefinite integer binary quadratic form not representing zero, meaning that for all Equivalently, this means that the discriminant of the form is positive, but not a total square.
In that case Conway [1] showed that on the topograph of positive and negative values are separated by a unique periodic river (see Fig. 4).
We are now going to explain how the continued fractions determine the path from the initial vertex on the topograph with to the Conway river and the relation with the Galois result.
Let us assume for simplicity that all the values are of the same sign (say, positive), otherwise is already on the river. Let us assume also that , so we are going down to the river.
Let be the real roots of the quadratic equation
[TABLE]
Again for simplicity let us assume that
[TABLE]
is the dominant (maximal modulus) root. Let
[TABLE]
be the continued fraction expansion of
From the general theory of the Farey tree and continued fractions we have the following result.
Proposition 3**.**
The continued fraction expansion (20) describes the unique path going from to the corresponding Conway river, and then along the river towards . A similar path leading to is described by the Propositions 1 and 2 above.
The Conway river of is an infinite in both directions path from to described by the periodic part of the expansion.
The finite path from to the Conway river can be given for by
[TABLE]
and for by
[TABLE]
This also gives a geometric interpretation of our formulas from the previous section, which is illustrated in Fig. 6 in the example of with
[TABLE]
Let us describe now the special (Galois) case when is a pure periodic continued fraction.
Let us call the quadratic form a Galois form if the continued fraction expansion of the dominant root of is pure periodic. By the Galois theorem this is equivalent to the conditions
Proposition 4**.**
An integer binary quadratic form is Galois if and only if , , satisfy
[TABLE]
The proof is obvious geometrically: and is true if and only if the Conway river travels along the edges separating and from and , see Fig. 7.
An example of the Galois form is the “golden” form corresponding to with
[TABLE]
5. Lyapunov exponents for values of binary forms
Now we are ready to state and prove our main results.
Let be an integer binary quadratic form (definite or indefinite).
If the form is indefinite, then we first assume that does not represent zero in the sense that for all In that case the two roots of the quadratic equation
[TABLE]
are real quadratic irrationals, corresponding to the ends of the Conway river.
To study the growth of the values of along the path we define the corresponding Lyapunov exponent as
[TABLE]
where are the values of at the -th superbase on the path
Let be the Lyapunov exponent of the monoid introduced in [10]:
[TABLE]
where are the matrices (8) and is the spectral radius of the matrix
Theorem 1**.**
For the definite integer binary quadratic forms the Lyapunov exponent
[TABLE]
For the indefinite integer binary quadratic forms not representing 0 we have
[TABLE]
In other words, the only two exceptional paths with zero growth are those leading to two ends of the Conway river of
Proof.
Let us introduce first for the form its matrix defined by
[TABLE]
which, slightly abusing the notation, we also denote by :
[TABLE]
Its determinant
[TABLE]
is minus a quarter of the discriminant of the quadratic equation
The action of the group on is defined in the matrix form by
[TABLE]
where
[TABLE]
This determines a 3-dimensional representation of , when acts on the coefficients of the form by
[TABLE]
If the eigenvalues of the matrix are and then the eigenvalues of are , and 1.
Consider first the case when the coefficients of the form are all positive. In that case Conway’s Climbing Lemma [1] guarantees the permanent growth whichever upward path we choose (see Fig. 8).
We claim that the corresponding growth is given by
To prove this, introduce two norms on binary forms . The first norm is the one used in the definition of :
[TABLE]
The second norm is
[TABLE]
Since any two norms in a finite-dimensional space are equivalent, we have for all
[TABLE]
for some positive constants This means that we can replace by in the definition
[TABLE]
Now let be a path and
[TABLE]
be the corresponding matrices (8), so that the matrices of the forms along the path are
[TABLE]
or, explicitly
[TABLE]
Assuming without loss of generality that we have
[TABLE]
where (see Proposition 1 in [10]).
Consider the cases and separately. When we have
[TABLE]
which determines the quadratic growth of in , and as a result
[TABLE]
If we have and thus from (26)
[TABLE]
[TABLE]
On the other hand, by assumption the initial are all positive, so, since they are also integer, From (26) then it follows that
[TABLE]
[TABLE]
Thus we have
[TABLE]
which implies that
[TABLE]
This completes the proof in the growing case.
Assume now that are positive, but , so the values of decrease. Consider first the case when the form is positive definite. Then all the values are positive, so it is clear that for any path at some point the growth will start again and we can repeat our arguments to get the claim.
However, if is indefinite this is no longer true, since can take negative values as well. By Conway’s result [1] for indefinite not representing zero positive and negative values of are separated by an infinite periodic river.
There are three possibilities: either the path does not cross the river, it crosses the river (or starts on the river and then leaves it), or it is after some point stuck on the river forever.
If the path does not cross the river the values of will remain positive and thus bounded from below, so at some point we will have growth and we repeat the arguments to prove the claim in this case as well.
If the path crosses the river then at some point all the values of will become negative, and we can repeat the arguments for to get the claim. If we start on the river (which means that and are of opposite signs), then after the point of departure we will have and of the same sign and can use the same arguments as before.
Finally, there are exactly two paths which are stuck on the river, corresponding to In that case we have no growth because of periodicity of the Conway river [1] and thus
[TABLE]
Note that the corresponding so in that case. ∎
Let us discuss now the remaining case: the indefinite forms representing zero and the semidefinite forms with zero discriminant.
Proposition 5**.**
For indefinite integer quadratic forms representing zero
[TABLE]
The same is true for the semidefinite integer forms.
Proof.
The topograph of the indefinite forms representing zero (with discriminant being total square) is described in Conway [1]. In that case we have two “lakes” corresponding to zero values connected by a finite river separating positive and negative values of see Fig. 9.
Note that modulo any such form can be reduced to
[TABLE]
The sequence of turns of the Conway river, connecting the lakes, is determined by the finite continued fraction expansion
[TABLE]
In particular, for the reduced form is and , corresponding to the sequence of river’s turns (see Fig. 9, where we start on the edge between 0 and 3 on the left lake). In the exceptional case with the river disappears and two lakes are adjacent [1].
This picture agrees with the fact that the roots of the corresponding equation
[TABLE]
are rational. A simple analysis shows that the previous arguments in this case work as well, with the only difference that now both and are zero, and thus equality holds for all . The same works for the semidefinite forms with as well. ∎
Remark. Most of these arguments work also for the binary forms with real coefficients . The Conway river is not necessarily periodic in this case and closely related to the Arnold sail in Klein’s geometric approach to continued fractions [5] (see [11]). However, in that case the values of the form along the Conway river may approach zero (see e.g. [6]), so the situation here is a bit more delicate.
6. Concluding remarks
Let us compare this with the growth of the Markov triples considered in [10]. Markov triples are the positive solutions of the Markov equation [9]
[TABLE]
They all can be found from the obvious one by compositions of Vieta involutions
[TABLE]
and permutations of
The right-hand side of the Markov equation
[TABLE]
is cubic polynomial, which is quadratic in every variable, implying the Vieta involution. It is also symmetric under the permutations of One can consider also a version of the Markov equation
[TABLE]
which has similar properties (see [10]).
We claim that this paper can be interpreted in a similar way for degree 2 polynomial
[TABLE]
Indeed, the transformation
[TABLE]
is just the Vieta involution for the equation
[TABLE]
In fact, is nothing other than the discriminant of the binary quadratic form
[TABLE]
Our results say that the Lyapunov exponents for the equation (29) with are twice the Lyapunov exponents for the Markov dynamics. When then the same is true with the exception of Conway river paths, for which the Lyapunov exponents vanish.
Note that the equation (29) with determines the two-sheeted hyperboloid, while for this is a one-sheeted hyperboloid. The semidefinite (degenerate) forms with correspond to the cone.
We would like to mention Klein’s correspondence [5] between indefinite binary quadratic forms and geodesics in hyperbolic plane, which we have learnt recently from Boris Springborn [12]. As we have just seen the projectivized vector space of real binary quadratic forms is a real projective plane with the degenerate forms forming a conic section determined by (29) with Definite forms correspond to the points inside this conic, which in the Klein model represents the points of the hyperbolic plane. The indefinite forms correspond to the points outside the conic, which by polarity are represented by the hyperbolic lines. On the binary tree these lines are nothing other than Conway rivers.
The Galois result is related to the reduction theory for the integer binary quadratic forms and the elements of going back to Gauss (see Chapter 7 in [4] and references therein). In particular, we would like to mention an interesting paper by Manin and Marcolli [8], where this theory is linked with non-commutative geometry and the quotient is interpreted as a non-commutative version of the modular curve. It would be interesting to understand from this point of view the role of our function , which is naturally defined on this space.
Finally, a natural question is about the growth of values of binary forms of degree . The corresponding action of is the restriction of the standard irreducible representation of of dimension This implies that generically the corresponding growth of the values of is
[TABLE]
but the precise description of all exceptions is an interesting question, open even for binary cubic forms. Note that in this case the values of on a superbase do not define uniquely and as a result we do not have local rules similar to the paralellogram rule.
7. Acknowledgements
We are very grateful to Alexey Bolsinov for numerous helpful discussions, to Oleg Karpenkov for explaining us his nice results on geometry of continued fractions [4], to Boris Springborn for sending us a preliminary version of his very interesting work [12] and to the referee for very helpful and constructive comments.
The work of K.S. was supported by the EPSRC as part of PhD study at Loughborough.
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1[1] J.H. Conway The Sensual (Quadratic) Form , Carus Mathematical Monographs, Vol.26. Mathematical Association of America, 1997.
- 2[2] É. Galois Démonstration d’un théorème sur les fractions continues périodiques. Ann. Math. Pures et Appl. 19 (1829), 294-301. English translation: P.M. Neumann The Mathematical Writings of Évariste Galois. EMS, 2011, 37-48.
- 3[3] A. Hatcher Topology of Numbers , available at https://www.math.cornell.edu/~hatcher/TN/T Nbook.pdf
- 4[4] O. Karpenkov Geometry of Continued Fractions. Springer Verlag, 2013.
- 5[5] F. Klein Ausgewählte Kapitel der Zahlentheorie I. Vorlesung, gehalten im Wintersemester 1895/96. Ausgearbeitet von A. Sommerfeld. Göttingen, 1896.
- 6[6] D. Kleinbock and B. Weiss Values of binary quadratic forms at integer points and Schmidt games. Contemporary Math. 631 (2015), AMS, 77-92.
- 7[7] W.J. Le Veque Fundamentals of Number Theory. Dover Publ. inc., 1996.
- 8[8] Y.I. Manin, M. Marcolli Continued fractions, modular symbols, and non-commutative geometry. Selecta Math. (N.S.), 8(3) (2002), 475-521.
