That is, with a unit equal to the width of the square image, the image is sheared one unit up, then two units to the right, and all that lies outside that unit square is shifted back by the unit until it is within the square.
Name
The map receives its name from Arnold's 1967 manuscript with André Avez, Problèmes ergodiques de la mécanique classique,[1] in which the outline of a cat was used to illustrate the action of the map on the torus. In the original book it was captioned by a humorous footnote,
In Arnold's native Russian, the map is known as "okroshka (cold soup) from a cat" (Russian: окрошка из кошки), in reference to the map's mixing properties, and which forms a play on words. Arnold later wrote that he found the name "Arnold's Cat" by which the map is known in English and other languages to be "strange".[2]
Γ has a unique hyperbolic fixed point (the vertices of the square). The linear transformation which defines the map is hyperbolic: its eigenvalues are irrational numbers, one greater and the other smaller than 1 (in absolute value), so they are associated respectively to an expanding and a contracting eigenspace which are also the stable and unstable manifolds. The eigenspaces are orthogonal because the matrix is symmetric. Since the eigenvectors have rationally independent components both the eigenspaces densely cover the torus. Arnold's cat map is a particularly well-known example of a hyperbolic toral automorphism, which is an automorphism of a torus given by a square unimodular matrix having no eigenvalues of absolute value 1.[3]
The set of the points with a periodic orbit is dense on the torus. Actually a point is periodic if and only if its coordinates are rational.
The number of points with period is exactly (where and are the eigenvalues of the matrix). For example, the first few terms of this series are 1, 5, 16, 45, 121, 320, 841, 2205 ....[4] (The same equation holds for any unimodular hyperbolic toral automorphism if the eigenvalues are replaced.)
The mapping torus of Γ is a solvmanifold, and as with other Anosov diffeomorphisms, this manifold has solv geometry.
The discrete cat map
It is possible to define a discrete analogue of the cat map. One of this map's features is that image being apparently randomized by the transformation but returning to its original state after a number of steps. As can be seen in the adjacent picture, the original image of the cat is sheared and then wrapped around in the first iteration of the transformation. After some iterations, the resulting image appears rather random or disordered, yet after further iterations the image appears to have further order—ghost-like images of the cat, multiple smaller copies arranged in a repeating structure and even upside-down copies of the original image—and ultimately returns to the original image.
The discrete cat map describes the phase space flow corresponding to the discrete dynamics of a bead hopping from site qt (0 ≤ qt < N) to site qt+1 on a circular ring with circumference N, according to the second order equation:
Defining the momentum variable pt = qt − qt−1, the above second order dynamics can be re-written as a mapping of the square 0 ≤ q, p < N (the phase space of the discrete dynamical system) onto itself:
This Arnold cat mapping shows mixing behavior typical for chaotic systems. However, since the transformation has a determinant equal to unity, it is area-preserving and therefore invertible the inverse transformation being:
For real variables q and p, it is common to set N = 1. In that case a mapping of the unit square with periodic boundary conditions onto itself results.
When N is set to an integer value, the position and momentum variables can be restricted to integers and the mapping becomes a mapping of a toroidial square grid of points onto itself. Such an integer cat map is commonly used to demonstrate mixing behavior with Poincaré recurrence utilising digital images. The number of iterations needed to restore the image can be shown never to exceed 3N.[5]
For an image, the relationship between iterations could be expressed as follows:
Models
Python code for Arnold's Cat Map
importosfromPIL.Imageimportopenasload_pic,newasnew_picdefmain(path,iterations,keep_all=False,name="arnold_cat-{name}-{index}.png"):""" Params path:str path to photograph iterations:int number of iterations to compute name:str formattable string to use as template for file names """title=os.path.splitext(os.path.split(path)[1])[0]counter=0whilecounter<iterations:withload_pic(path)asimage:dim=width,height=image.sizewithnew_pic(image.mode,dim)ascanvas:forxinrange(width):foryinrange(height):nx=(2*x+y)%widthny=(x+y)%heightcanvas.putpixel((nx,height-ny-1),image.getpixel((x,height-y-1)))ifcounter>0andnotkeep_all:os.remove(path)counter+=1print(counter,end="\r")path=name.format(name=title,index=counter)canvas.save(path)returncanvasif__name__=="__main__":path=input("Enter the path to an image:\n\t")whilenotos.path.exists(path):path=input("Couldn't find your chosen image, please try again:\n\t")result=main(path,3)result.show()
^ abVladimir I. Arnold; A. Avez (1967). Problèmes Ergodiques de la Mécanique Classique (in French). Paris: Gauthier-Villars.;
English translation: V. I. Arnold; A. Avez (1968). Ergodic Problems in Classical Mechanics. New York: Benjamin.
^Arnold, V. I. (2015). Lectures and Problems: A Gift to Young Mathematicians. Berkeley, CA, USA: Mathematical Sciences Research Institute.
^Franks, John M (October 1977). "Invariant sets of hyperbolic toral automorphisms". American Journal of Mathematics. 99 (5). The Johns Hopkins University Press: 1089–1095. doi:10.2307/2374001. ISSN0002-9327. JSTOR2374001.