Rotation on the digital plane
Abstract.
Let denote the matrix of rotation with angle of the Euclidean plane, FLOOR the function, which rounds a real point to the nearest lattice point down on the left and ROUND the function for rounding off a vector to the nearest node of the lattice. We prove under the natural assumption that the functions and are neither surjective nor injective. More precisely we prove lower and upper estimates for the size of the sets of lattice points, which are the image of two lattice points as well as of lattice points, which have no preimages. It turns out that the density of that sets are positive except when .
1. Introduction
The digital plane is a lattice whose elements are points with integer coordinates, the so called lattice points. The values of continuous functions can be represented only approximatively, rounding its computed value to a lattice point. Rounding is a mapping . The discrete variant of the function is . Of course there are plenty discrete variants of . One of the most studied function of the plane is the rotation, which is a real matrix with eigenvalues and . Let us denote it by . There exists an invertible real matrix such that with
For the sequence of points is called an orbit111Some author calls this sequence trajectory. of generated by . The orbits of generated by any non-zero points lie on an ellipse, those of on the unit circle. Plainly is a bijective mapping on , but usually not bijective on . Combining it with a rounding, which results the function we obtain a mapping of , which is a discrete rotation in wide sense. Many interesting and hard questions appear: is a discrete rotation injective, surjective or bijective? How are its orbits? All orbits of are bounded, but this is not at all clear for its discrete variants. The investigation of such questions have long tradition, see the early example [6].
FLOOR222Rounds a real point to the nearest lattice point down on the left., ROUND333Stands for rounding off a vector to the nearest node of the lattice. and TRUNC 444Denotes the coordinate-wise truncation of the fractional part of a vector towards the zero point. are eminent examples of rounding functions. Discretizing the rotation with them the resulted mappings are more or less different. Kozyakin et al [9] gave a good overview on the results concerning discretized rotations, especially on and . Diamond et al [7] proved that if then all orbits of eventually gets into the zero point. The situation is very different with . Kozyakin et al [9] proved among others that if the rotation angle is such that the rows of all the nonnegative powers of the matrix are rationally independent then the density of lattice points with empty full preimages is positive. They used measure theoretic approach, which allow to prove much more general results too. For other probabilistic results on discrete rotations we refer to [6, 13, 14, 8].
In former investigations of the second author with different coauthors [1, 2, 3, 4] a kind of discrete rotation appears as a natural generalization of positional number systems. It was with
We come back to this function later, but before we discuss some properties of the FLOOR function. It commutes with the additive group of translations of and the full preimage of zero is , which is Jordan measurable, thus FLOOR, like ROUND, is a quantizer in the sense of [9]. Hence the discretized rotation FLOOR has similar properties as ROUND. This holds, among others, for the above mentioned property of preimages.
In this note we prove under the natural assumption that the function is neither surjective nor injective. More precisely we prove lower density estimates for the sets of lattice points, which are the image of two lattice points as well as of lattice points, which have no preimages. It turns out, see Theorems 3.1 and 4.2, that these densities are positive except when . This means that the number of such lattice points lying in a box symmetric to the origin and of side length is . In contrast in the exceptional case this number is only . In Section 6 we indicate that the same results hold to too. We use in the proof elementary results of uniform distribution theory and properties of primitive Pythagorean triplets. Our results are more precise than those in [9].
There are discrete rotations which are bijective. Trivial examples are with . More interesting are the functions . Reeve-Black and Vivaldi [12] claim that a generic discrete rotation is neither injective nor surjective. Our results justify this claim for the function . To prove similar characterization for is a challenging problem. We expect that apart the previous examples only the transpose of lie in the exceptional set.
Despite many efforts and interesting results, we have deterministic knowledge only on the orbits of . For the eleven values all orbits are periodic, see [10, 2, 3]. Generally it was proved by Akiyama and Pethő [4] that for any there are infinitely many periodic orbits. This is still far from the conjecture that all orbits are periodic see [2].
The matrix through 555To be precise we had to write instead of , where denote the transpose of the vector , i.e., a column vector. As in the article we should do this often, and from the context it will be clear whether the actual vector is a row or a column vector, we avoid this extra notation. induces a linear mapping on , which we will denote by too.
FLOOR and integer part are the same functions, in the sequel we will use the later. To simplify our notation we define by
We computed the orbits of for many choice of the angle and the starting point and found always periodicity. For the angle we found infinitely many starting points which generate short periodic orbit, see Theorem 5.2. Based on our numerical and theoretical results we propose the following conjecture
Conjecture 1.1.
Every orbit of is periodic.
We also use the fractional part function, i.e, . Both functions will be applied coordinate wise to the points of the real vector spaces. We use the same notation to these extended functions. Let and , then obviously if and only if for some . The third equivalent expression is .
2. Preliminary results
In order to prove our main results we need some tools from uniform distribution theory. Let be such that then we set . This is a box with side lengths , whose volume is plainly . For a sequence of -dimensional real vectors set
where denotes the cardinality of the set .
The sequence is called uniformly distributed modulo , shortly uniformly distributed if
holds for all with the above property. Notice that if is uniformly distributed then there exist for any a constant such that
(2.1) |
holds for all large enough . Indeed, one may set for some .
The following theorem is a bit modified version of Theorem I, p.64. of Cassels [5] and it plays a crucial role in this paper.
Theorem 2.1.
Let for be homogeneous linear forms in the variables . Suppose that the only set of integers such that
has integer coefficients in is . Then the set of vectors for integral is uniformly distributed modulo .
Now we formulate the main lemma of this paper.
Lemma 2.2.
Let and set , . If then there exist constants depending only on such that the number of solutions of the system of inequalities
(2.2) | |||||
(2.3) |
lie between and except when in which case it lies between and .
The same statement holds for the number of solutions in pairs of odd integers.
Proof.
There are only integer pairs with , thus the upper estimate is obvious. Hence in the sequel we have to deal with the upper bound in the exceptional case and with the lower bound.
In the proof we have to distinguish three cases according the arithmetic nature of and .
Case 1. are -linearly independent. Then the linear forms satisfy the assumptions of Theorem 2.1, thus the points for is uniformly distributed in
There are points with , thus setting and in (2.1) we obtain the statement immediately.
If for is uniformly distributed in then the same holds if runs through a sublattice of , which proves the second assertion. In Case 2 we use the uniformly distributed property of some sequence, hence for them the second assertion holds by the above remark.
Case 2. where , and There exist integers with such that and For any there exist such that and . With these notations we obtain
and similarly
Fix and set and We have With these notations we have to count the number of solutions of the system of inequalities
in the integers with . We have to distinguish two subcases
Case 2.1. . We have , thus the coefficients of in the last inequalities are up to sign equal and may assume at most different values. As the sequence is by Theorem 2.1 uniformly distributed in , thus each inequality, hence the system too, has at most solutions.
Choosing the integers and are divisible by , hence . If, for example, then we may assume without loss of generality . Our first inequality has at least solutions in provided is large enough.
Case 2.2. . Setting this is equivalent to . As and we have , hence the sequence is uniformly distributed in . Thus the inequality
has for any fixed at least solutions in , where the positive constant indicated by the notation depends only on and on . Hence the system of the (independent) inequalities
has at least solutions in .
For all such pairs the system of linear equations
has unique solution in , i.e. solves our original system of equations. Using Cramer’s rule we obtain
Thus . Hence choosing we can produce at least integer solutions of (2.2) and (2.3).
Case 3. Although the statement is the same as in the other cases, we have to use different tools in the proof, because Theorem 2.1 does not hold. We have a kind of discrete uniform distribution treated systematically in Narkiewicz [11]. First we set where Then
which implies i.e. is a Pithagorean triple, and we may assume that it is primitive, i.e. Then there are such that or and We work out in the sequel only the first possibility, because the alternative case can be handled analogously.
With these notations and we have
Because there exists an integer such that
(2.4) |
For fixed there exist such that where Then
Multiplying this by and taking (2.4) into account we obtain
Since , we obtain
(2.5) |
On the other hand by (2.4) we get
Hence
and
Choosing , which implies we obtain that the pair solves the system of inequalities (2.2), (2.3).
Finally choosing such that and we obtain , hence such pairs not only solves the system of inequalities (2.2),(2.3), but satisfies too. Plainly the number of such pairs is at least and the lemma is completely proved.
Choosing odd is odd too for all odd or even depending on the parities of and . The argument of the last paragraph proves the second assertion in this case.
∎
3. Injectivity of digital rotation
Before stating the main result of this section we introduce a notation: denotes the number of such that and is the image by of two different grid points. If then , thus it is bijective, thus . Otherwise, we prove that tends to infinity.
Theorem 3.1.
If then there exist constants depending only on such that except when , in which case hold.
Proof.
Let such that . Then
which implies
for some . After squaring and adding these equations we obtain
As and are integers the right hand side can be either zero ore one. The first case is excluded because either or is nonzero. Thus we have the following four possibilities:
This implies that if two grid points have the same image by then they are neighbors.
Now, we show that for each there exist infinitely many neighbors such that
First, we assume and Inserting them into the starting equations we obtain
(3.1) |
and
(3.2) |
(3.3) |
and
(3.4) |
Observe that are the linear forms introduced in Lemma 2.2, further setting the lemma implies our statement in this case.
The other cases can be handled similarly we give only the important data for repeating the argument.
4. Surjectivity of digital rotation
In the last section we proved that the digital rotation is usually not injective. Now we prove that usually it is not surjective either. To achieve our goal we need an elementary geometric lemma. To state and prove it we introduce some notation. For a point put and , where means here translation. The squares are disjoint and their union cover . As is a rotation the sets are squares too with the same properties. Thus there exists for any unique such that .
Lemma 4.1.
Let Then for each if and only if and for each Moreover in this case the points belong in some order to the horizontal and vertical neighbour squres to .
Proof.
Necessity: If for some then thus is the image of some point.
Sufficiency: We have therefore since is linear. The same holds for the closure of denoted by In Figure 1 we show the four main situations of the rotated unitgrid.
We give the proof of the lemma in detail only for the case , the other cases can be handled similarly. Assume that , but for each Then we have
Here and in the sequel, denote the (respectively ) coordinate of the corresponding point. Notice that the two strong inequalities are due to the assumption for each
We show that is the union of three disjoint triangles . The triangle is bordered by the lines and by the line sequent between the points and . Similarly is bordered by the lines and by the line sequent between the points and . Finally the borders of are the lines and the line segment between the points and .
That are proper triangles. For example, look at The triangle with vertices and the intersection of the lines and is rectangular and the legth of its hypotenuse is , thus , which together with the above inequalities implies . As the line has an intersection with the line segment between and which is different from the end points. Similarly we have i.e. hence the line intersects the line segment between and In this case it may happen that the intersection point is
As a byproduct we proved , i.e . Performing similar arguments for and we obtain that , i.e and , i.e respectively. Finally, one can prove , i.e too, hence the second assertion is proved.
No we finalize the proof of the first assertion. We assume that there exists such that Then and i.e. hence is contained in one of the triangles We have which contains only the grid point therefore In contrast, i.e. which is a contradiction. We have and which implies and respectively. The proof of the case is finished. As we mentioned above the three other cases can be handled similarly. ∎
Similarly to Section 3 we introduce the function , which is the number of grid points , such that and which are images of no grid points under the mapping . If then is bijective, hence . By the next theorem this cannot happen otherwise.
Theorem 4.2.
If then there exist constants depending only on such that except when , in which case hold.
An immediate consequence is
Corollary 4.3.
If then has infinitely many different orbits.
Proof of Theorem 4.2.
Let , which is the image of no grid points under . Then, by Lemma 4.1, there exists such that and for all . In the same lemma we proved that belong in some order to the four unit squares left, right, top and down to the unit square . Depending on the size of we distinguish four cases.
Case 1. . Then by Lemma 4.1 , which means
Rearranging we obtain the system of inequalities
(4.1) | |||||
(4.2) | |||||
(4.3) | |||||
(4.4) |
As we have . Under this assumption we have and holds too. Hence .
Similarly, and , thus . Hence the inequalities (4.1)-(4.4) hold if and only if
After multiplying by and adding we obtain
(4.5) |
Performing the analogous computation for we get that satisfy the requirements if and only if
(4.6) |
As , hence we can apply Lemma 2.2 tothe system of inequalities (4.5) and (4.5) with and , which proves the theorem in this case.
We have , because .
Thus . Similarly, . Hence the inequalities (4.7)-(4.10) hold if and only if
Multiplying by and adding we obtain
Performing the analogous computation for we get that satisfy the requirements if and only if
As and we have , hence , thus we may apply Lemma 2.2 to the last system of inequalities, which completes the proof in the second case,
Case 3. . Then by Lemma 4.1 . The same computation as in Cases 1. and 2. lead to the system of inequalities
As we have and can apply Lemma 2.2 again.
Case 4. . Then by Lemma 4.1 . The same computation as in Cases 1. and 2. lead to the system of inequalities
As we have and can apply Lemma 2.2 again, which completes the proof of the theorem.
5. Orbits with short periodicity
Our first goal was to study the periodicity of the orbits of , which seems to be very difficult. As a first step we examined some other properties of , but did not forget the ultimate goal. In this section we present a small finding, which corresponds to We show that there are infinitely many such that the orbit of generated by is periodic of length i.e.
Nevertheless we could present other examples, but this already shows that we do not have yet the necessary technique to prove much more general results.
In the next lemma we collected those identities, which are necessary to prove our periodicity result. Their proofs are one step direct computation. We denote, as usual in these notes, the fractional part of by
Lemma 5.1.
Let and set Suppose Then
(5.1) |
(5.2) |
(5.3) |
(5.4) |
(5.5) |
(5.6) |
Theorem 5.2.
Let and suppose If then There exist infinitely many satisfying the assumptions.
Proof.
First we prove that the assumptions imply . Indeed, means (equality is only possible if ), hence . Further is equivalent to the sequence of inequalities
which proves the claim.
Now we prove the second assertion. As is irrational, the sequence is by Theorem 2.1 uniformly distributed, thus there are infinitely many satisfying .
Now we turn to prove the first assertion. It is obvious that Further by the assumption we have Further we have Thus by equations (5.1) and (5.2) we get Further, by equation 5.6 we have After that we get by equation (5.4). Then Further we get by equations (5.1) and (5.3) Finally, using equation (5.5) we have ∎
Remark 5.3.
There exist infinitely many natural numbers which fulfill the conditions in Theorem 5.2, therefore there are infinitely many orbits with short periodicity.
We only give one class of starting points for the rotation by in order to achieve periodicity of There may exist many other starting points with the same periodicity.
6. Remarks on
Following the proofs of Theorems 3.1 and 4.2 one can prove similar statements for the function . To perform such a project one has to adjust Lemma 2.2 according the new rounding function. This is straight forward if one of and is irrational, but needs some computation otherwise. To save space we leave this to the interested reader.
References
- [1] S. Akiyama, T. Borbély, H. Brunotte, A. Pethő, and J. M. Thuswaldner, Generalized radix representations and dynamical systems I, Acta Math. Hungar. 108 (2005), no. 3, 207–238.
- [2] S. Akiyama, H. Brunotte, A. Pethő, and W. Steiner, Remarks on a conjecture on certain integer sequences, Periodica Math. Hungarica 52 (2006), 1–17.
- [3] by same author, Periodicity of certain piecewise affine planar maps, Tsukuba J. Math. 32 (2008), no. 1, 1–55.
- [4] S. Akiyama and A. Pethő, Discretized rotation has infinitely many periodic orbits, Nonlinearity 26 (2013), 871—880.
- [5] J.W.S. Cassels, An Introduction to Diophantine Approximation, Cambridge Tracts in Mathematics and Mathematical Physics, No. 45. Cambridge University Press, New York, 1957. Theorem I, p.64.
- [6] R. DeVogelaere, On the structure of symmetric periodic solutions of conservative systems, with applications, Contributions to the theory of nonlinear oscillations, Vol. IV, Annals of Mathematics Studies, no 41, Princeton University Press, Princeton, N.J., 1958, pp. 53–84.
- [7] P. Diamond, P. Kloeden, V. Kozyakin and A. Pokrovskii, Boundedness and dissipativity of truncated rotations on uniform lattices, Math. Nachr. 191 (1998), 59 – 79
- [8] K. Koupstov, J. H. Lowenstein, and F. Vivaldi, Quadratic rational rotations of the torus and dual lattice maps, Nonlinearity 15 (2002), 1795–1842.
- [9] V. Kozyakin, N. Kuznetsov, A. Pokrovskii and I. Vladimirov, Some problems in analysis of disretization of contonouos dynamical systems, Nonlinear Analysis, Theory, Methods & Applications, 30, (1997), 767-?78. Proc. 2nd World Congress of Nonlinear Analysis.
- [10] J.H. Lowenstein, S. Hatjispyros, and F. Vivaldi, Quasi-periodicity, global stability and scaling in a model of Hamiltonian round-off, Chaos 7 (1997), 49 - 56.
- [11] W. Narkiewicz, Uniform distribution of sequences of integers in residue classes, Lecture Notes in Mathematics, 1087. Springer-Verlag, Berlin, 1984
- [12] H. Reeve-Black, F. Vivaldi, Asymptotics in a family of linked strip maps, Physica D 290 (2015) 57–71
- [13] F. Vivaldi, Periodicity and transport from round-off errors, Experiment. Math. 3 (1994), 303–315.
- [14] by same author, The arithmetic of discretized rotations, -adic mathematical physics, AIP Conf. Proc., vol. 826, Amer. Inst. Phys., Melville, NY, 2006, pp. 162–173.