6 tiles
April 6th 2022 at Turku University, Finland��Tristan Stérin��Hamilton Institute & Computer Science Department
Maynooth University, Ireland
1
ERC No 772766, SFI 18/ERCS/5746
Personal background
2
D. Woods, D. Doty et al., Diverse and robust molecular algorithms using reprogrammable DNA self-assembly, Nature, 2019.
Personal background
3
D. Woods, D. Doty et al., Diverse and robust molecular algorithms using reprogrammable DNA self-assembly, Nature, 2019.
Personal background
4
D. Woods, D. Doty et al., Diverse and robust molecular algorithms using reprogrammable DNA self-assembly, Nature, 2019.
Personal background
5
← help prove that BB(5) = 47,176,870
The Collatz process
6
Let’s iterate: 34, 17, 26, 13, 20, 10, 5, 8, 4, 2, 1, 2, 1, 2, 1, ...
The Collatz process
7
Collatz conjecture: All strictly positive integers reach 1 under the action of the Collatz process.
^ Open since at least the 60’
The Collatz process
8
Collatz conjecture: All strictly positive integers reach 1 under the action of the Collatz process.
Two seemingly independent components:
As of 2020, computer tested up to 2^67
D. Barina. The Journal of Supercomputing, 2020.
The Collatz process
9
Theorem (Conway 1972). Generalised Collatz Maps are Turing-complete.
J.H Conway. Number Theory Conference, 1972.
P. Koiran and C. Moore. TCS, 1999.
One catch: exponential slowdown.
The Collatz process
10
What is the computational power of the Collatz process?
Motivating question:
The Collatz process
11
Some minimalistic computing systems can simulate Turing machines efficiently: rule 110.
M. Cook. Complex Systems, 2004
T. Neary and D. Woods. ICALP, 2006.
What is the computational power of the Collatz process?
Motivating question:
The Collatz process
12
What is the computational power of the Collatz process?
Motivating question:
Let’s study the Collatz process symbolically, for instance in binary.
Approach:
The Collatz process
13
111010
The Collatz process
14
111010
How to perform 3x+1 in base 2?
The Collatz process
15
How to perform 3x+1 in base 2?
The Collatz process
16
How to perform 3x in base 2?
3x = 2x + x
⇔
Adding x to its left shift
⇔
Adding each bit of x to its right neighbour
The Collatz process
17
How to perform 3x in base 2?
3x = 2x + x
⇔
Adding x to its left shift
⇔
Adding each bit of x to its right neighbour
The Collatz process
18
How to perform 3x in base 2?
111010
The Collatz process
19
How to perform 3x in base 2?
111010
1
The Collatz process
20
How to perform 3x in base 2?
111010
1
The Collatz process
21
How to perform 3x in base 2?
111010
11
The Collatz process
22
How to perform 3x in base 2?
111010
11
The Collatz process
23
How to perform 3x in base 2?
111010
111
The Collatz process
24
How to perform 3x in base 2?
111010
111
The Collatz process
25
How to perform 3x in base 2?
111010
0111
The Collatz process
26
How to perform 3x in base 2?
111010
10111
The Collatz process
27
How to perform 3x in base 2?
0111010
10111
The Collatz process
28
How to perform 3x in base 2?
0111010
010111
The Collatz process
29
How to perform 3x in base 2?
00111010
010111
The Collatz process
30
How to perform 3x in base 2?
00111010
1010111
The Collatz process
31
How to perform 3x in base 2?
00111010
1010111
29
87 = 3*29
The Collatz process
32
How to perform 3x in base 2? Run this machine:
00111010
1010111
3x binary
Finite State Transducer
Caption
read : write
3x
29
87
The Collatz process
33
How to perform 3x in base 2? Run this machine:
00111010
1011000
3x+1 binary
Finite State Transducer
Caption
read : write
29
3x + 1
88
The Collatz process
34
How to perform 3x in base 2? Run this machine:
00111011
1011001
3x+2 binary
Finite State Transducer
Caption
read : write
29
89
3x + 2
Small digression on multiplication
35
How to perform C*x in base 2?
Small digression on multiplication
36
How to perform C*x in base 2?
Small digression on multiplication
37
How to perform C*x in base 2?
For instance 5x = [1,0,1]·[4,2,1] x = 4x + x
⇔
Add each bit of x to 0*first neighbour and 1*second neighbour
⇔
Convolute x with the filter 101 while propagating carries
Small digression on multiplication
38
How to perform C*x in base 2?
Small digression on multiplication
39
5x minimal binary FST
preserves determinism and gives you division by C�
Back to the Collatz process
40
1010000010
001111000100
001011010100
1000100000
321
241
181
17
-
-
-
-
Each row gives an odd iterate of
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Small digression on , the 2-adic integers
41
...0000000000000000111010
...000000000000001011000
29
3x + 1
88
The machine can process left-infinite binary words
These are called 2-adic integers,
Small digression on , the 2-adic integers
42
...1010101010101010101010
...000000000000000000000
-1/3
3x + 1
0
The machine can process left-infinite binary words
These are called 2-adic integers,
Small digression on , the 2-adic integers
43
Small digression on , the 2-adic integers
44
Since mod 2, x/2 and 3x+1 are well defined in the 2-adic integers (and are pretty much the same as in N), you can naturally run the Colltaz process on any 2-adic integer.
This includes:�
Small digression on , the 2-adic integers
45
The Collatz conjecture generalises to:
Lagarias’ Periodicity Conjecture: � Every odd-denominator rational reaches a cycle.
J. C. Lagarias. The American Mathematical Monthly, 1985.
For instance, three known strictly negative cycles:
-1, -1, ...
-5, -7, -10, -5, …
-17, -25, -37, -55, -82, -41, -61, -91, -136, -68, -34, -17, ...
�
Hence, the symbolic, base-2 approach to Collatz is fruitful.
Small digression on , the 2-adic integers
46
The Collatz conjecture generalises to:
Lagarias’ Periodicity Conjecture: � Every odd-denominator rational reaches a cycle.
J. C. Lagarias. The American Mathematical Monthly, 1985.
For instance, three known strictly negative cycles:
-1, -1, ...
-5, -7, -10, -5, …
-17, -25, -37, -55, -82, -41, -61, -91, -136, -68, -34, -17, ...
�
Hence, the symbolic, base-2 approach to Collatz is fruitful.
Back to the Collatz process
47
1010000010
001111000100
001011010100
1000100000
321
241
181
17
-
-
-
-
Each row gives an odd iterate of
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Back to the Collatz process
48
000001010000010
00001111000100
001011010100
1000100000
321
241
181
17
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Back to the Collatz process
49
000001010000010
00001111000100
001011010100
1000100000
321
241
181
17
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
3x+1 binary
Finite State Transducer
Back to the Collatz process
50
000001010000010
00001111000100
001011010100
1000100000
321
241
181
17
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
3x+1 binary
Finite State Transducer
y = 3x + 1
Back to the Collatz process
51
000001010000010
00001111000100
001011010100
1000100000
321
241
181
17
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
3x+2 binary
Finite State Transducer
y’ = 3(3x + 1) + 2
Back to the Collatz process
52
000001010000010
00001111000100
001011010100
1000100000
321
241
181
17
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
3x+2 binary
Finite State Transducer
y’’ = 3(3(3x + 1) + 2) + 2
Back to the Collatz process
53
000001010000010
00001111000100
001011010100
1000100000
321
241
181
17
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
3x+2 binary
Finite State Transducer
y’’ = 3(3(3x + 1) + 2) + 2
x = 0
Back to the Collatz process
54
000001010000010
00001111000100
001011010100
1000100000
321
241
181
17
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
y’’ = 3(3(3x + 1) + 2) + 2 = 1*3^2 + 2*3 + 2
122 in base 3 is 17
1001 in base 2 is 17
The Collatz process embeds a base 3 -> 2 algorithm (not in AC0)!
Columns simulate the Collatz process simultaneously than rows but in base 3.
T. Stérin and D. Woods. Reachability Problems, 2020.
Back to the Collatz process
55
1010000010
111000100
1010100
00000
321 (base 2)
17�base 3
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
The 9 first Collatz steps of 321
are completely encoded in this triangle.
T^9(321) = 17
Back to the Collatz process
56
000001010000010
00001111000100
001011010100
1000100000
321
241
181
17
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
y’’ = 3(3(3x + 1) + 2) + 2 = 1*3^2 + 2*3 + 2
Back to the Collatz process
57
3x+{0,1,2} in binary and x-{0,1}/2 in ternary are dual
Base 6
58
Base 6
59
59
59
59
59
59
59
59
59
0
1
2
3
4
5
5145_6 =
1120102_3 =
10001111001_2 =
1145_10
6 tiles
60
60
60
60
60
60
60
60
60
Brought to our attention by Matthew Cook, also studied by other authors.
Base 3
Base 3
Base 2
Base 2
6 tiles
61
61
61
61
61
61
61
61
61
Brought to our attention by Matthew Cook, also studied by other authors.
Deterministic:
x = 2*west+south
x
6 tiles
62
62
62
62
62
62
62
62
62
Brought to our attention by Matthew Cook, also studied by other authors.
Deterministic:
x = 3*north+east
x
6 tiles
63
63
63
63
63
63
63
63
63
Brought to our attention by Matthew Cook, also studied by other authors.
Deterministic:
Chinese Remainder Theorem
X is unique solution < 6 of:
X = south % 2
X = east % 3
x
6 tiles
64
64
64
64
64
64
64
64
64
Brought to our attention by Matthew Cook, also studied by other authors.
Non det:
x
6 tiles
65
65
65
65
65
65
65
65
65
6 tiles
66
66
66
66
66
66
66
66
66
X = 1502_6 = 398
= 3^4 * north_2 + east_3
= 2^4 * west_3 + south_2
= 3^4 * 4 + 74 = 398
= 2^4 * 24 + 14 = 398
Diag_6 = 3^k * north_2 + east_3 (Euclidean div by 3^k)
= 2^k * west_3 + south_2 (Euclidean div by 2^k)
(east,south) are solving CRT in Z/3^k x Z/2^k → Z/6^k
k = 4 is the size
of the square.
6 tiles
67
67
67
67
67
67
67
67
67
Brought to our attention by Matthew Cook, also studied by other authors.
All tiles commute:
Z’ is unique no matter the path used.
z
2z + n
3z + w
3p + e
p
2q + s
q
z’
6z + x
6 tiles
68
68
68
68
68
68
68
68
68
000001010000010
00001111000100
001011010100
1000100000
321
241
181
17
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
6 tiles
69
69
69
69
69
69
69
69
69
321
17
6 tiles
70
70
70
70
70
70
70
70
70
321
17
6 tiles
71
71
71
71
71
71
71
71
71
321
17
Magenta encodes 241 = 1_3 1110001_2, the next odd Collatz iterate of 321
Cyclic Collatz conjecture
72
72
72
72
72
72
72
72
72
321
17
321 != 17
Cyclic Collatz conjecture
73
73
73
73
73
73
73
73
73
321
17
For all non trivial borders, north_2 != west_3
Other hard questions
74
74
74
74
74
74
74
74
74
Erdős’ conjecture on powers of 2: for each column (except first few) there is always a red glue.
Encodable
In a 15-state TM
Other hard questions
75
75
75
75
75
75
75
75
75
J. Kari and J. Kopra, RAIRO -- Theoretical Informatics & Applications, 2017.
These 6 tiles are Turing complete in a relaxed model
76
76
76
76
76
76
76
76
76
T. Stérin, M. Cook, D. Woods, DNA, 2021.
77
Acknowledgement
ERC No 772766, SFI 18/ERCS/5746