In
mathematics
Mathematics is a field of study that discovers and organizes methods, Mathematical theory, theories and theorems that are developed and Mathematical proof, proved for the needs of empirical sciences and mathematics itself. There are many ar ...
, Arnold's cat map is a
chaotic map from the
torus
In geometry, a torus (: tori or toruses) is a surface of revolution generated by revolving a circle in three-dimensional space one full revolution about an axis that is coplanarity, coplanar with the circle. The main types of toruses inclu ...
into itself, named after
Vladimir Arnold
Vladimir Igorevich Arnold (or Arnol'd; , ; 12 June 1937 – 3 June 2010) was a Soviet and Russian mathematician. He is best known for the Kolmogorov–Arnold–Moser theorem regarding the stability of integrable systems, and contributed to s ...
, who demonstrated its effects in the 1960s using an image of a cat, hence the name.
It is a simple and pedagogical example for
hyperbolic toral automorphisms.
Thinking of the torus
as the
quotient space , Arnold's cat map is the transformation
given by the formula
:
Equivalently, in
matrix
Matrix (: matrices or matrixes) or MATRIX may refer to:
Science and mathematics
* Matrix (mathematics), a rectangular array of numbers, symbols or expressions
* Matrix (logic), part of a formula in prenex normal form
* Matrix (biology), the m ...
notation, this is
:
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'',
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
Okróshka ( ) is a cold soup of Russian origin, which probably originated in the Volga region.
The classic soup is a mix of mostly raw vegetables (like cucumbers, radishes and spring onions), boiled potatoes, eggs, cooked meat such as beef, v ...
(cold soup) from a cat" (), 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".
Properties
*
is
invertible
In mathematics, the concept of an inverse element generalises the concepts of opposite () and reciprocal () of numbers.
Given an operation denoted here , and an identity element denoted , if , one says that is a left inverse of , and that ...
because the matrix has
determinant
In mathematics, the determinant is a Scalar (mathematics), scalar-valued function (mathematics), function of the entries of a square matrix. The determinant of a matrix is commonly denoted , , or . Its value characterizes some properties of the ...
1 and therefore its
inverse has integer entries,
*
is
area preserving,
*
has a unique
hyperbolic fixed point (the
vertices of the square). The linear transformation which defines the map is hyperbolic: its
eigenvalue
In linear algebra, an eigenvector ( ) or characteristic vector is a vector that has its direction unchanged (or reversed) by a given linear transformation. More precisely, an eigenvector \mathbf v of a linear transformation T is scaled by a ...
s 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
In linear algebra, an eigenvector ( ) or characteristic vector is a Vector (mathematics and physics), vector that has its direction (geometry), direction unchanged (or reversed) by a given linear map, linear transformation. More precisely, an e ...
which are also the
stable and unstable manifolds. The eigenspaces are orthogonal because the matrix is
symmetric
Symmetry () in everyday life refers to a sense of harmonious and beautiful proportion and balance. In mathematics, the term has a more precise definition and is usually used to refer to an object that is invariant under some transformations ...
. 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
In mathematics, an automorphism is an isomorphism from a mathematical object to itself. It is, in some sense, a symmetry of the object, and a way of mapping the object to itself while preserving all of its structure. The set of all automorphism ...
of a
torus
In geometry, a torus (: tori or toruses) is a surface of revolution generated by revolving a circle in three-dimensional space one full revolution about an axis that is coplanarity, coplanar with the circle. The main types of toruses inclu ...
given by a square
unimodular matrix
In mathematics, a unimodular matrix ''M'' is a square integer matrix having determinant +1 or −1. Equivalently, it is an integer matrix that is invertible over the integers: there is an integer matrix ''N'' that is its inverse (these are equi ...
having no
eigenvalues
In linear algebra, an eigenvector ( ) or characteristic vector is a vector that has its direction unchanged (or reversed) by a given linear transformation. More precisely, an eigenvector \mathbf v of a linear transformation T is scaled by a ...
of absolute value 1.
* The set of the points with a
periodic orbit
In mathematics, in the study of iterated functions and dynamical systems, a periodic point of a function is a point which the system returns to after a certain number of function iterations or a certain amount of time.
Iterated functions
Given ...
is
dense
Density (volumetric mass density or specific mass) is the ratio of a substance's mass to its volume. The symbol most often used for density is ''ρ'' (the lower case Greek letter rho), although the Latin letter ''D'' (or ''d'') can also be use ...
on the torus. Actually a point is periodic if and only if its coordinates are
rational
Rationality is the quality of being guided by or based on reason. In this regard, a person acts rationally if they have a good reason for what they do, or a belief is rational if it is based on strong evidence. This quality can apply to an ...
.
*
is
topologically transitive (i.e. there is a point whose orbit is
dense
Density (volumetric mass density or specific mass) is the ratio of a substance's mass to its volume. The symbol most often used for density is ''ρ'' (the lower case Greek letter rho), although the Latin letter ''D'' (or ''d'') can also be use ...
).
* 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 ....
(The same equation holds for any unimodular hyperbolic toral automorphism if the eigenvalues are replaced.)
*
is
ergodic
In mathematics, ergodicity expresses the idea that a point of a moving system, either a dynamical system or a stochastic process, will eventually visit all parts of the space that the system moves in, in a uniform and random sense. This implies th ...
and
mixing,
*
is an
Anosov diffeomorphism
In mathematics, more particularly in the fields of dynamical systems and geometric topology, an Anosov map on a manifold ''M'' is a certain type of mapping, from ''M'' to itself, with rather clearly marked local directions of "expansion" and "contr ...
and in particular it is
structurally stable.
* 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
In common usage, randomness is the apparent or actual lack of definite pattern or predictability in information. A random sequence of events, symbols or steps often has no order and does not follow an intelligible pattern or combination. ...
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
The phase space of a physical system is the set of all possible physical states of the system when described by a given parameterization. Each possible state corresponds uniquely to a point in the phase space. For mechanical systems, the p ...
flow corresponding to the discrete dynamics of a bead hopping from site
''(
'') to site
on a circular ring with circumference
, according to the
second order equation:
:
Defining the momentum variable
, the above second order dynamics can be re-written as a mapping of the square
(the
phase space
The phase space of a physical system is the set of all possible physical states of the system when described by a given parameterization. Each possible state corresponds uniquely to a point in the phase space. For mechanical systems, the p ...
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
In mathematics, the determinant is a Scalar (mathematics), scalar-valued function (mathematics), function of the entries of a square matrix. The determinant of a matrix is commonly denoted , , or . Its value characterizes some properties of the ...
equal to unity, it is
area-preserving and therefore
invertible
In mathematics, the concept of an inverse element generalises the concepts of opposite () and reciprocal () of numbers.
Given an operation denoted here , and an identity element denoted , if , one says that is a left inverse of , and that ...
the inverse transformation being:
:
:
For real variables
and
, it is common to set
. In that case a mapping of the unit square with periodic boundary conditions onto itself results.
When
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
Poincaré is a French surname. Notable people with the surname include:
* Henri Poincaré (1854–1912), French physicist, mathematician and philosopher of science
* Henriette Poincaré (1858–1943), wife of Prime Minister Raymond Poincaré
* L ...
utilising digital images. The number of iterations needed to restore the image can be shown never to exceed
.
For an image, the relationship between iterations could be expressed as follows:
:
Models
Python code for Arnold's Cat Map
import os
from PIL.Image import open as load_pic, new as new_pic
def main(path, iterations, keep_all=False, name="arnold_cat--.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) counter = 0
while counter < iterations:
with load_pic(path) as image:
dim = width, height = image.size
with new_pic(image.mode, dim) as canvas:
for x in range(width):
for y in range(height):
nx = (2 * x + y) % width
ny = (x + y) % height
canvas.putpixel((nx, height-ny-1), image.getpixel((x, height-y-1)))
if counter > 0 and not keep_all:
os.remove(path)
counter += 1
print(counter, end="\r")
path = name.format(name=title, index=counter)
canvas.save(path)
return canvas
if __name__ "__main__":
path = input("Enter the path to an image:\n\t")
while not os.path.exists(path):
path = input("Couldn't find your chosen image, please try again:\n\t")
result = main(path, 3)
result.show()
See also
*
List of chaotic maps
In mathematics, a chaotic map is a map (mathematics), map (an Discrete-time dynamical system, evolution function) that exhibits some sort of chaotic behavior. Maps may be parameterized by a discrete-time or a continuous-time parameter. Discrete ma ...
*
Recurrence plot
In descriptive statistics and chaos theory, a recurrence plot (RP) is a plot showing, for each moment j in time, the times at which the state of a dynamical system returns to the previous state at i,
i.e., when the phase space trajectory visits rou ...
References
[;
English translation: ]
External links
*
Effect of randomisation of initial conditions on recurrence timeArnold's Cat Mapby Enrique Zeleny,
The Wolfram Demonstrations Project
The Wolfram Demonstrations Project is an open-source collection of interactive programmes called Demonstrations. It is hosted by Wolfram Research. At its launch, it contained 1300 demonstrations but has grown to over 10,000. The site won a Pa ...
.
Arnold's Cat Map: An interactive graphical exploration
{{DEFAULTSORT:Arnold's Cat Map
Chaotic maps
Exactly solvable models