XX Eesti Arvutiteaduse Talvekool

Similar documents
Cellular Automata and Tilings

Cellular automata, tilings and (un)computability

Cellular Automata: Tutorial

Cellular Automata. Jarkko Kari Spring University of Turku

Cellular Automata. Jarkko Kari Spring University of Turku

Cellular Automata: Overview and classical results

Cellular Automata. History. 1-Dimensional CA. 1-Dimensional CA. Ozalp Babaoglu

A Colorful Introduction to Cellular Automata

arxiv: v1 [cs.cc] 23 Oct 2017

Cellular Automata CS 591 Complex Adaptive Systems Spring Professor: Melanie Moses 2/02/09

Dimension sensitive properties of cellular automata and subshifts of finite type

Justine Seastres. Cellular Automata and the Game of Life

Mitchell Chapter 10. Living systems are open systems that exchange energy, materials & information

II. Cellular Automata 8/27/03 1

Classification of two-dimensional binary cellular automata with respect to surjectivity

Introduction to Scientific Modeling CS 365, Fall 2011 Cellular Automata

Periodic Cellular Automata of Period-2

From Glider to Chaos: A Transitive Subsystem Derived From Glider B of CA Rule 110

Chaotic Subsystem Come From Glider E 3 of CA Rule 110

Motivation. Evolution has rediscovered several times multicellularity as a way to build complex living systems

Nilpotency and Limit Sets of Cellular Automata

Structure and Invertibility in Cellular Automata

15-251: Great Theoretical Ideas in Computer Science Lecture 7. Turing s Legacy Continues

11691 Review Guideline Real Analysis. Real Analysis. - According to Principles of Mathematical Analysis by Walter Rudin (Chapter 1-4)

THE GARDEN-OF-EDEN THEOREM FOR FINITE CONFIGURATIONS

Properties and Behaviours of Fuzzy Cellular Automata

A Topological Classification of D-Dimensional Cellular Automata

Topological conjugacy relation. minimal G-subshifts

The group of reversible Turing machines

II. Spatial Systems A. Cellular Automata 8/24/08 1

Modelling with cellular automata

Procedures for calculating reversible one-dimensional cellular automata

Proof: The coding of T (x) is the left shift of the coding of x. φ(t x) n = L if T n+1 (x) L

Isomorphism of free G-subflows (preliminary draft)

II. Spatial Systems. A. Cellular Automata. Structure. Cellular Automata (CAs) Example: Conway s Game of Life. State Transition Rule

Notes for Functional Analysis

THE MEASURE-THEORETIC ENTROPY OF LINEAR CELLULAR AUTOMATA WITH RESPECT TO A MARKOV MEASURE. 1. Introduction

LECTURE 15-16: PROPER ACTIONS AND ORBIT SPACES

Catalan numbers and power laws in cellular automaton rule 14

On a Characterization of Cellular Automata in Tilings of the Hyperbolic Plane

Dynamics and Chaos. Melanie Mitchell. Santa Fe Institute and Portland State University

Notes for Functional Analysis

PERIODIC POINTS FOR ONTO CELLULAR AUTOMATA

Real Analysis. Joe Patten August 12, 2018

Outline 1 Introduction Tiling definitions 2 Conway s Game of Life 3 The Projection Method

Branislav K. Nikolić

DYNAMICAL CUBES AND A CRITERIA FOR SYSTEMS HAVING PRODUCT EXTENSIONS

Density of periodic points, invariant measures and almost equicontinuous points of Cellular Automata

Topology. Xiaolong Han. Department of Mathematics, California State University, Northridge, CA 91330, USA address:

arxiv: v3 [cs.fl] 8 May 2018

Chapter 2 Linear Transformations

CBSSS 6/24/02. Physics becomes the. Computing Beyond Silicon Summer School. computer. Norm Margolus

Homogeneity and compactness: a mystery from set-theoretic topology

Functions. Given a function f: A B:

Metric Space Topology (Spring 2016) Selected Homework Solutions. HW1 Q1.2. Suppose that d is a metric on a set X. Prove that the inequality d(x, y)

MATH 614 Dynamical Systems and Chaos Lecture 7: Symbolic dynamics (continued).

Continuous Spatial Automata

Extension of cellular automata by introducing an algorithm of recursive estimation of neighbors

biologically-inspired computing lecture 12 Informatics luis rocha 2015 INDIANA UNIVERSITY biologically Inspired computing

Functions Functions and Modeling A UTeach/TNT Course

THE SPACETIME OF A SHIFT ENDOMORPHISM

THE AUTOMORPHISM GROUP OF A SHIFT OF LINEAR GROWTH: BEYOND TRANSITIVITY

Part V. 17 Introduction: What are measures and why measurable sets. Lebesgue Integration Theory

Gabor Frames for Quasicrystals II: Gap Labeling, Morita Equivale

12. Hilbert s fifth problem for compact groups: Von Neumann s theorem

Recursive definitions on surreal numbers

Cellular automata are idealized models of complex systems Large network of simple components Limited communication among components No central

FACTOR MAPS BETWEEN TILING DYNAMICAL SYSTEMS KARL PETERSEN. systems which cannot be achieved by working within a nite window. By. 1.

One-sided shift spaces over infinite alphabets

Dynamics and topology of matchbox manifolds

MATH 54 - TOPOLOGY SUMMER 2015 FINAL EXAMINATION. Problem 1

COBHAM S THEOREM AND SUBSTITUTION SUBSHIFTS

Fuzzy Cellular Automata in. Conjunctive Normal Form

LECTURE 16: LIE GROUPS AND THEIR LIE ALGEBRAS. 1. Lie groups

Symmetry Analysis of Discrete Dynamical Systems

Metric Spaces and Topology

Introduction to Artificial Life and Cellular Automata. Cellular Automata

Discrete Mathematics: Lectures 6 and 7 Sets, Relations, Functions and Counting Instructor: Arijit Bishnu Date: August 4 and 6, 2009

Lipschitz matchbox manifolds

IRRATIONAL ROTATION OF THE CIRCLE AND THE BINARY ODOMETER ARE FINITARILY ORBIT EQUIVALENT

TOPOLOGICAL PROPERTIES OF SAND AUTOMATA AS CELLULAR AUTOMATA

Chapter 3: Baire category and open mapping theorems

Functional Analysis. Franck Sueur Metric spaces Definitions Completeness Compactness Separability...

arxiv: v2 [cs.fl] 21 Sep 2016

The torsion problem for the automorphism group of a full Z d -shift and its topological fullgroup.

CS 468: Computational Topology Group Theory Fall b c b a b a c b a c b c c b a

Statistical Mechanics of Surjective Cellular Automata

4.2. ORTHOGONALITY 161

Katholieke Universiteit Leuven Department of Computer Science

Discrete Mathematics for CS Spring 2007 Luca Trevisan Lecture 27

CHAPTER 4. βs as a semigroup

LECTURE 15: COMPLETENESS AND CONVEXITY

von Neumann algebras, II 1 factors, and their subfactors V.S. Sunder (IMSc, Chennai)

Borel complexity and automorphisms of C*-algebras

Complex Analysis Qualifying Exam Solutions

GELFAND S THEOREM. Christopher McMurdie. Advisor: Arlo Caine. Spring 2004

RELATIONS AND FUNCTIONS

Definition: Let S and T be sets. A binary relation on SxT is any subset of SxT. A binary relation on S is any subset of SxS.

ACS2: Decidability Decidability

Introduction to Topology

Transcription:

XX Eesti Arvutiteaduse Talvekool Cellular automata, tilings and (un)computability Jarkko Kari Department of Mathematics and Statistics University of Turku

Lecture 1: Tutorial on Cellular automata Introduction and examples General definitions Topolgy & Curtis-Hedlund-Lyndom -theorem Reversible CA Surjective CA: balance, Garden-of-Eden -theorem

Cellular Automata (CA): Introduction Cellular automata are among the oldest models of natural computing. They are versatile objects of study, investigated in physics as discrete models of physical systems, in computer science as models of massively parallel computation under the realistic constraints of locality and uniformity, in mathematics as endomorphisms of the full shift in the context of symbolic dynamics.

Cellular automata possess several fundamental properties of the physical world: they are massively parallel, homogeneous in time and space, all interactions are local, time reversibility and conservation laws can be obtained by choosing the local update rule properly.

Example: the Game-of-Life by John Conway. Infinite checker-board whose squares (=cells) are colored black (=alive) or white (=dead). At each discrete time step each cell counts the number of living cells surrounding it, and based on this number determines its new state. All cells change their state simultaneously.

The local update rule asks each cell to check the present states of the eight surrounding cells. If the cell is alive then it stays alive (survives) iff it has two or three live neighbors. Otherwise it dies of loneliness or overcrowding. If the cell is dead then it becomes alive iff it has exactly three living neighbors. 00 0 11 1 00 11 01 01 01

The local update rule asks each cell to check the present states of the eight surrounding cells. If the cell is alive then it stays alive (survives) iff it has two or three live neighbors. Otherwise it dies of loneliness or overcrowding. If the cell is dead then it becomes alive iff it has exactly three living neighbors. 00 11 01 00 0 11 1 10 1 00 11 01 00 11 01 01 01

The local update rule asks each cell to check the present states of the eight surrounding cells. If the cell is alive then it stays alive (survives) iff it has two or three live neighbors. Otherwise it dies of loneliness or overcrowding. If the cell is dead then it becomes alive iff it has exactly three living neighbors. 00 11 01 00 11 01 00 11 01 00 11 01 00 11 01 01 01 01

The local update rule asks each cell to check the present states of the eight surrounding cells. If the cell is alive then it stays alive (survives) iff it has two or three live neighbors. Otherwise it dies of loneliness or overcrowding. If the cell is dead then it becomes alive iff it has exactly three living neighbors. 00 11 01 00 11 01 00 0 11 1 00 0 11 1 00 11 01 01 00 11 01 01 01

A typical snapshot of a time evolution in Game-of-Life: Initial uniformly random configuration.

A typical snapshot of a time evolution in Game-of-Life: The next generation after all cells applied the update rule.

A typical snapshot of a time evolution in Game-of-Life: Generation 10

A typical snapshot of a time evolution in Game-of-Life: Generation 100

A typical snapshot of a time evolution in Game-of-Life: GOL is a computationally universal two-dimensional CA.

Another famous universal CA: rule 110 by S.Wolfram. A one-dimensional CA with binary state set {0,1}, i.e. a two-way infinite sequence of 0 s and 1 s. Each cell is updated based on its old state and the states of its left and right neighbors as follows: 111 0 110 1 101 1 100 0 011 1 010 1 001 1 000 0

Another famous universal CA: rule 110 by S.Wolfram. A one-dimensional CA with binary state set {0,1}, i.e. a two-way infinite sequence of 0 s and 1 s. Each cell is updated based on its old state and the states of its left and right neighbors as follows: 111 0 110 1 101 1 100 0 011 1 010 1 001 1 000 0 110 is the Wolfram number of this CA rule.

Space-time diagram is a pictorial representation of a time evolution in one-dimensional CA, where space and time are represented by the horizontal and vertical direction:

General definition of d-dimensional CA Finite state set S. Configurations are elements of S Zd, i.e., functions Z d S assigning states to cells, A neighborhood vector N = ( x 1, x 2,..., x n ) is a vector of n distinct elements of Z d that provide the relative offsets to neighbors. The neighbors of a cell at location x Z d are the n cells at locations x+ x i, for i = 1,2,...,n.

Typical two-dimensional neighborhoods: c c Von Neumann Moore neighborhood neighborhood {(0,0),(±1,0),(0,±1)} { 1,0,1} { 1,0,1}

The local rule is a function f : S n S where n is the size of the neighborhood. State f(a 1,a 2,...,a n ) is the new state of a cell whose n neighbors were at states a 1,a 2,...,a n one time step before.

The local update rule determines the global dynamics of the CA: Configuration c becomes in one time step the configuration e where, for all x Z d, e( x) = f(c( x+ x 1 ),c( x+ x 2 ),...,c( x+ x n )). The transformation G : S Zd S Zd that maps c e is the global transition function of the CA. Function G is our main object of study and we simply call it a CA function. In algorithmic questions we use its finite presentation (the local rule).

Curtis-Hedlund-Lyndom -theorem It is convenient to endow S Zd with a metric to measures distances of configurations: For all c e, d(c,e) = 2 n where n = min{ x c( x) e( x)} is the distance from the origin to the closest cell where c and e differ. Two configurations are close to each other if one needs to look far to see a difference in them.

In the usual metric on R d one needs to change into if one want to distinguish very close points.

In the usual metric on R d one needs to change into if one want to distinguish very close points. In our metric on the configuration space S Zd, a better equipment sees further away:

In the usual metric on R d one needs to change into if one want to distinguish very close points. In our metric on the configuration space S Zd, a better equipment sees further away:

The metric induces a compact topology on S Zd. The topology is generated by the cylinder sets.

A cylinder is a subset of S Zd determined by a finite pattern: Let D Z d be a finite domain, and p : D S an assignment of states to the domain. The cylinder determined by D,p is the set {c S Zd i D : c i = p i } of all configurations that agree with p in domain D. * * * * * * * p * D * * * Cylinders are both open and closed: They form a clopen basis of the topology.

Under this topology, a sequence c 1,c 2,... of configurations converges to c S Zd if and only if for all cells x Z d and for all sufficiently large i holds c i ( x) = c( x). Compactness of the topology means that all infinite sequences c 1,c 2,... of configurations have converging subsequences.

All cellular automata are continuous transformations S Zd S Zd under the topology. Indeed, locality of the update rule means that if c 1,c 2,... is a converging sequence of configurations then converges as well, and G(c 1 ),G(c 2 ),... lim i G(c i) = G(lim i c i ).

The translation τ determined by vector r Z d is the transformation that maps c e where S Zd S Zd e( x) = c( x r) for all x Z d. (It is the CA whose local rule is the identity function and whose neighborhood consists of r alone.) Translations determined by unit coordinate vectors (0,...,0,1,0...,0) are called shifts

Since all cells of a CA use the same local rule, the CA commutes with all translations: G τ = τ G.

We have seen that all CA are continuous, translation commuting maps S Zd S Zd. The Curtis-Hedlund- Lyndon theorem from 1969 states that also the converse is true: Theorem: A function G : S Zd S Zd is a CA function if and only if (i) G is continuous, and (ii) G commutes with translations.

Some symbolic dynamics terminology: The set S Zd, together with the shift maps, is the d-dimensional full shift. Topologically closed, shift invariant subsets of S Zd are called subshifts. Cellular automata are the endomorphisms of the full shift.

Finite and periodic configurations It is obviously not possible to simulate CA functions on arbitrary infinite configurations, but one has to limit the attention to some subset of S Zd. We often consider the action on finite configurations or on periodic configurations.

Finite configurations: One state q S is often identified as the quiescent state, and it is expected to be stable: f(q,q,...,q) = q. A configuration c S Zd is called finite if the set is finite. { n Z d c( n) q} q q q q q q q q q q q q q q Due to stability of q, CA G maps finite configurations to finite configurations.

Periodic configurations: Configuration c S Zd has period r Z d if it is invariant under the translation τ by r: τ(c) = c. CA functions commute with translations, so we also have τ(g(c)) = G(τ(c)) = G(c). Period r of c is also a period of G(c).

Configuration c S Zd is (fully) periodic if it has d linearly independent periods.

Configuration c S Zd is (fully) periodic if it has d linearly independent periods.

Configuration c S Zd is (fully) periodic if it has d linearly independent periods.

Cellular automata preserve periods, so periodic configurations are mapped to periodic configurations.

Finite and periodic configurations allow simulations of cellular automata on finitely presented configurations. The use of periodic configurations is usually termed periodic boundary conditions. Finite configurations and periodic configurations are dense in S Zd : each cylinder contains finite and periodic configurations.

Reversible CA A CA is called injective if G is one-to-one, surjective if G is onto, bijective if G is both one-to-one and onto.

Reversible CA A CA is called injective if G is one-to-one, surjective if G is onto, bijective if G is both one-to-one and onto. A CA G is a reversible (RCA) if there is another CA function F that is its inverse, i.e. G F = F G = identity function. RCA G and F are called the inverse automata of each other.

Game-of-Life and Rule 110 are irreversible: Configurations may have several pre-images.

Two-dimensional Q2R Ising model by G.Vichniac (1984) is an example of a reversible cellular automaton. Each cell has a spin that is directed either up or down. The direction of a spin is swapped if and only if among the four immediate neighbors there are exactly two cells with spin up and two cells with spin down:

The twist that makes the Q2R rule reversible: Color the space as a checker-board. On even time steps only update the spins of the white cells and on odd time steps update the spins of the black cells.

The twist that makes the Q2R rule reversible: Color the space as a checker-board. On even time steps only update the spins of the white cells and on odd time steps update the spins of the black cells.

The twist that makes the Q2R rule reversible: Color the space as a checker-board. On even time steps only update the spins of the white cells and on odd time steps update the spins of the black cells.

The twist that makes the Q2R rule reversible: Color the space as a checker-board. On even time steps only update the spins of the white cells and on odd time steps update the spins of the black cells.

Q2R is reversible: The same rule (applied again on squares of the same color) reconstructs the previous generation. Q2R rule also exhibits a local conservation law: The number of neighbors with opposite spins remains constant over time.

Evolution of Q2R from an uneven random distribution of spins: Initial random configuration with 8% spins up.

Evolution of Q2R from an uneven random distribution of spins: One million steps. The length of the B/W boundary is invariant.

From the Curtis-Hedlund-Lyndom -theorem we get Corollary: A cellular automaton G is reversible if and only if it is bijective. Proof: If G is a reversible CA function then G is by definition bijective. Conversely, suppose that G is a bijective CA function. Then G has an inverse function G 1 that clearly commutes with the shifts. The inverse function G 1 is also continuous because the space S Zd is compact. It now follows from the Curtis-Hedlund- Lyndon theorem that G 1 is a cellular automaton.

The point of the corollary is that in bijective CA each cell can determine its previous state by looking at the current states in some bounded neighborhood around them.