Weighted Automata on Infinite Words in the Context of Attacker-Defender Games

Similar documents
The Halting Problem is Undecidable

CMPSCI 250: Introduction to Computation. Lecture #19: Regular Expressions and Their Languages David Mix Barrington 11 April 2013

CS103B Handout 17 Winter 2007 February 26, 2007 Languages and Regular Expressions

(IALC, Chapters 8 and 9) Introduction to Turing s life, Turing machines, universal machines, unsolvable problems.

C H A P T E R Regular Expressions regular expression

Formal Languages and Automata Theory - Regular Expressions and Finite Automata -

CAs and Turing Machines. The Basis for Universal Computation

Pushdown Automata. place the input head on the leftmost input symbol. while symbol read = b and pile contains discs advance head remove disc from pile

Automata and Formal Languages

CSE 135: Introduction to Theory of Computation Decidability and Recognizability

Omega Automata: Minimization and Learning 1

Honors Class (Foundations of) Informatics. Tom Verhoeff. Department of Mathematics & Computer Science Software Engineering & Technology

Fundamentele Informatica II

24 Uses of Turing Machines

Local periods and binary partial words: An algorithm

Algorithmic Software Verification

THEORY of COMPUTATION

Overview of E0222: Automata and Computability

Regular Languages and Finite State Machines

Regular Languages and Finite Automata

Computability Theory

Composability of Infinite-State Activity Automata*

Informatique Fondamentale IMA S8

3515ICT Theory of Computation Turing Machines

The Model Checker SPIN

Chapter 7 Uncomputability

CS 3719 (Theory of Computation and Algorithms) Lecture 4

The Theory of Tetris

Chapter 17. Orthogonal Matrices and Symmetries of Space

ω-automata Automata that accept (or reject) words of infinite length. Languages of infinite words appear:

Reading 13 : Finite State Automata and Regular Expressions

Mathematical Induction

Theory of Computation Chapter 2: Turing Machines

6.080/6.089 GITCS Feb 12, Lecture 3

Matrix Representations of Linear Transformations and Changes of Coordinates

6.045: Automata, Computability, and Complexity Or, Great Ideas in Theoretical Computer Science Spring, Class 4 Nancy Lynch

Computational Models Lecture 8, Spring 2009

Techniques algébriques en calcul quantique

4. FIRST STEPS IN THE THEORY 4.1. A

Two-dimensional Languages

Automata on Infinite Words and Trees

Math 312 Homework 1 Solutions

COMPUTER SCIENCE TRIPOS

How To Understand The Theory Of Computer Science

T Reactive Systems: Introduction and Finite State Automata

Scanner. tokens scanner parser IR. source code. errors

Math Quizzes Winter 2009

Turing Machines, Part I

Representing Reversible Cellular Automata with Reversible Block Cellular Automata

Automata Theory. Şubat 2006 Tuğrul Yılmaz Ankara Üniversitesi

The Optimum One-Pass Strategy for Juliet

On Winning Conditions of High Borel Complexity in Pushdown Games

Automata and Computability. Solutions to Exercises

Introduction to Automata Theory. Reading: Chapter 1

Turing Machines: An Introduction

Reliably computing cellular automaton, in 1-sparse noise

IRREDUCIBLE OPERATOR SEMIGROUPS SUCH THAT AB AND BA ARE PROPORTIONAL. 1. Introduction

CSC4510 AUTOMATA 2.1 Finite Automata: Examples and D efinitions Definitions

Testing LTL Formula Translation into Büchi Automata

Mathematics Course 111: Algebra I Part IV: Vector Spaces

Lempel-Ziv Coding Adaptive Dictionary Compression Algorithm

3. Mathematical Induction

Grammars with Regulated Rewriting

So let us begin our quest to find the holy grail of real analysis.

1. Nondeterministically guess a solution (called a certificate) 2. Check whether the solution solves the problem (called verification)

MATH 304 Linear Algebra Lecture 9: Subspaces of vector spaces (continued). Span. Spanning set.

A First Investigation of Sturmian Trees

SYSTEMS OF EQUATIONS AND MATRICES WITH THE TI-89. by Joseph Collison

Today s Topics. Primes & Greatest Common Divisors

How To Compare A Markov Algorithm To A Turing Machine

A New Generic Digital Signature Algorithm

Implementation of Recursively Enumerable Languages using Universal Turing Machine in JFLAP

Properties of Stabilizing Computations

I. GROUPS: BASIC DEFINITIONS AND EXAMPLES

Introduction to Turing Machines

Compiler Construction

2x + y = 3. Since the second equation is precisely the same as the first equation, it is enough to find x and y satisfying the system

GROUP ALGEBRAS. ANDREI YAFAEV

Assignment 5 - Due Friday March 6

a 11 x 1 + a 12 x a 1n x n = b 1 a 21 x 1 + a 22 x a 2n x n = b 2.

1 Sets and Set Notation.

Reliability Guarantees in Automata Based Scheduling for Embedded Control Software

Characterization of some binary words with few squares

Finite Automata and Regular Languages

THE BANACH CONTRACTION PRINCIPLE. Contents

Primes in Sequences. Lee 1. By: Jae Young Lee. Project for MA 341 (Number Theory) Boston University Summer Term I 2009 Instructor: Kalin Kostadinov

Worksheet for Teaching Module Probability (Lesson 1)

1 Definition of a Turing machine

University of Lille I PC first year list of exercises n 7. Review

Algebraic Recognizability of Languages

Department of Computer Science, University of Otago

Colored Hats and Logic Puzzles

6.080 / Great Ideas in Theoretical Computer Science Spring 2008

Chapter 7. Matrices. Definition. An m n matrix is an array of numbers set out in m rows and n columns. Examples. (

How To Understand The Relation Between Simplicity And Probability In Computer Science

THE DIMENSION OF A VECTOR SPACE

Solving Systems of Linear Equations

Theory of Computation Class Notes 1

Outline 2. 1 Elementary Cellular Automata. 2 Analysis of Cellular Automata. 3 A Huge Surprise. Generalizations? 4

Mathematics for Computer Science/Software Engineering. Notes for the course MSM1F3 Dr. R. A. Wilson

Transcription:

Weighted Automata on Infinite Words in the Context of Attacker-Defender Games V. Halava 1,2 T. Harju 1 R. Niskanen 2 I. Potapov 2 1 Department of Mathematics and Statistics University of Turku, Finland 2 Department of Computer Science University of Liverpool, UK Computability in Europe, 2015 Halava, Harju, Niskanen, Potapov Weighted Automata on Infinite Words in... CiE 2015 1 / 30

Attacker-Defender Games Two players: Attacker, Defender. Players play in turns using available moves. Initial and target configurations. Configuration is a sequence of alternating moves. Play is an infinite sequence of configurations. Attacker wins if the target configuration is reachable in a play starting from the initial configuration. Otherwise Defender wins. Halava, Harju, Niskanen, Potapov Weighted Automata on Infinite Words in... CiE 2015 2 / 30

Games we consider 1 Weighted Word Games 2 Word Game on pairs of group words 3 Matrix Games on vectors 4 Braid Games Theorem It is undecidable whether Attacker has a winning strategy in these games. Halava, Harju, Niskanen, Potapov Weighted Automata on Infinite Words in... CiE 2015 3 / 30

Weighted Word Games Players are given sets of words over free group alphabet. They play words in turns. concatenation sum Attacker s goal to reach a certain word with zero weight. abab -7 Halava, Harju, Niskanen, Potapov Weighted Automata on Infinite Words in... CiE 2015 4 / 30

Word Games on pairs of group words Similar to Weighted Word Games but now the weight is encoded as a unary word. Halava, Harju, Niskanen, Potapov Weighted Automata on Infinite Words in... CiE 2015 5 / 30

Matrix Games Players are given sets of matrices from SL(n, Z). Attacker: {M 1,..., M k } Defender: {N 1,..., N l } Initial and target vectors We encode words from Word Games on pair of words into 4 4 matrices. N2 M1 N1 x0 x M2 Halava, Harju, Niskanen, Potapov Weighted Automata on Infinite Words in... CiE 2015 6 / 30

Braid Games Two variants - played on 3 (B 3 ) or 5 strands (B 5 ). Players are given sets of braid words. Target is a braid isotopic to a trivial braid. = Halava, Harju, Niskanen, Potapov Weighted Automata on Infinite Words in... CiE 2015 7 / 30

Universality Problem for Finite Automata For given Finite Automaton A, over alphabet A, is its language L(A) = A? For given Büchi Automaton B, over alphabet A, is its language L(B) = A ω? Both are known to be decidable. Example a b b b a Halava, Harju, Niskanen, Potapov Weighted Automata on Infinite Words in... CiE 2015 8 / 30

Universality Problem for Weighted Automata Extend automaton by adding weight function γ to transitions. For given Weighted Automaton A γ, over alphabet A, is its language L(A γ ) = A? Shown to be undecidable by Halava and Harju in 1999. Example (a, 4) (b, 3) (b, 2) (b, 2) (a, 1) Halava, Harju, Niskanen, Potapov Weighted Automata on Infinite Words in... CiE 2015 9 / 30

Universality Problem for Weighted Automata Extend automaton by adding weight function γ to transitions. For given Weighted Automaton A γ, over alphabet A, is its language L(A γ ) = A? Shown to be undecidable by Halava and Harju in 1999. Example (a, 4) (b, 3) (b, 2) (b, 2) (a, 1) Unfortunately this result is not strong enough for games. Halava, Harju, Niskanen, Potapov Weighted Automata on Infinite Words in... CiE 2015 9 / 30

Weighted Automaton on Infinite Words Let A = (Q, A, σ, q 0, F, Z) be a finite automaton, where Q is the set of states, A is the alphabet, σ is the set of transitions, q 0 is the initial state, F is the set of final states, and Z is the additive group of integers. Halava, Harju, Niskanen, Potapov Weighted Automata on Infinite Words in... CiE 2015 10 / 30

Weighted Automaton on Infinite Words Let A = (Q, A, σ, q 0, F, Z) be a finite automaton, where Q is the set of states, A is the alphabet, σ is the set of transitions, q 0 is the initial state, F is the set of final states, and Z is the additive group of integers. Transitions In the form t = q, a, q, z. Halava, Harju, Niskanen, Potapov Weighted Automata on Infinite Words in... CiE 2015 10 / 30

Weighted Automaton on Infinite Words Let A = (Q, A, σ, q 0, F, Z) be a finite automaton, where Q is the set of states, A is the alphabet, σ is the set of transitions, q 0 is the initial state, F is the set of final states, and Z is the additive group of integers. Transitions In the form t = q, a, q, z. Weight of a path Let π = t i0 t i1 be an infinite path of A. Let p π be a finite prefix. Weight of p is γ(p) = z 0 +... + z n Z. Halava, Harju, Niskanen, Potapov Weighted Automata on Infinite Words in... CiE 2015 10 / 30

Weighted Automaton on Infinite Words Let A = (Q, A, σ, q 0, F, Z) be a finite automaton, where Q is the set of states, A is the alphabet, σ is the set of transitions, q 0 is the initial state, F is the set of final states, and Z is the additive group of integers. Transitions In the form t = q, a, q, z. Weight of a path Let π = t i0 t i1 be an infinite path of A. Let p π be a finite prefix. Weight of p is γ(p) = z 0 +... + z n Z. Acceptance condition Let w A ω. It is accepted by A if there exists a computation π such that for some prefix p has zero weight. w : 0 Halava, Harju, Niskanen, Potapov Weighted Automata on Infinite Words in... CiE 2015 10 / 30

Weighted Automaton on Infinite Words Let A = (Q, A, σ, q 0, F, Z) be a finite automaton, where Q is the set of states, A is the alphabet, σ is the set of transitions, q 0 is the initial state, F is the set of final states, and Z is the additive group of integers. Transitions In the form t = q, a, q, z. Weight of a path Let π = t i0 t i1 be an infinite path of A. Let p π be a finite prefix. Weight of p is γ(p) = z 0 +... + z n Z. Acceptance condition Let w A ω. It is accepted by A if there exists a computation π such that for some prefix p has zero weight. (a, 1) (a, 1) (a, 0), (b, 0) (b, 2) (a, 0), (b, 0) Halava, Harju, Niskanen, Potapov Weighted Automata on Infinite Words in... CiE 2015 10 / 30

Weighted Automaton on Infinite Words Let A = (Q, A, σ, q 0, F, Z) be a finite automaton, where Q is the set of states, A is the alphabet, σ is the set of transitions, q 0 is the initial state, F is the set of final states, and Z is the additive group of integers. Transitions In the form t = q, a, q, z. Weight of a path Let π = t i0 t i1 be an infinite path of A. Let p π be a finite prefix. Weight of p is γ(p) = z 0 +... + z n Z. Acceptance condition Let w A ω. It is accepted by A if there exists a computation π such that for some prefix p has zero weight. (a, 1) (a, 1) (a, 0), (b, 0) (b, 2) (a, 0), (b, 0) Words beginning with aab, aba or baa are accepted. Halava, Harju, Niskanen, Potapov Weighted Automata on Infinite Words in... CiE 2015 10 / 30

Post Correspondence Problem (Post 46) Given a finite set of dominoes with words on top and bottom halves, can we construct a finite sequence of dominoes where words on top and bottom halves are equal. Halava, Harju, Niskanen, Potapov Weighted Automata on Infinite Words in... CiE 2015 11 / 30

Post Correspondence Problem (Post 46) Given a finite set of dominoes with words on top and bottom halves, can we construct a finite sequence of dominoes where words on top and bottom halves are equal. Example Consider P = {[ ab abb ] [ ], bb baa, [ aaa aa ]}. Halava, Harju, Niskanen, Potapov Weighted Automata on Infinite Words in... CiE 2015 11 / 30

Post Correspondence Problem (Post 46) Given a finite set of dominoes with words on top and bottom halves, can we construct a finite sequence of dominoes where words on top and bottom halves are equal. Example Consider P = {[ ab abb ] [ ], bb baa [ ] ab abb, [ aaa aa ]}. Halava, Harju, Niskanen, Potapov Weighted Automata on Infinite Words in... CiE 2015 11 / 30

Post Correspondence Problem (Post 46) Given a finite set of dominoes with words on top and bottom halves, can we construct a finite sequence of dominoes where words on top and bottom halves are equal. Example Consider P = {[ ab abb ] [ ], bb baa, [ aaa aa ]}. [ ][ ] ab bb abb baa Halava, Harju, Niskanen, Potapov Weighted Automata on Infinite Words in... CiE 2015 11 / 30

Post Correspondence Problem (Post 46) Given a finite set of dominoes with words on top and bottom halves, can we construct a finite sequence of dominoes where words on top and bottom halves are equal. Example Consider P = {[ ab abb ] [ ], bb baa, [ aaa aa ]}. [ ][ ][ ] ab bb aaa abb baa aa Halava, Harju, Niskanen, Potapov Weighted Automata on Infinite Words in... CiE 2015 11 / 30

Post Correspondence Problem (Post 46) Given a finite set of dominoes with words on top and bottom halves, can we construct a finite sequence of dominoes where words on top and bottom halves are equal. Example Consider P = {[ ab abb ] [ ], bb baa, [ aaa aa [ ][ ab bb abb baa ]}. ][ aaa aa ][ ] aaa aa Halava, Harju, Niskanen, Potapov Weighted Automata on Infinite Words in... CiE 2015 11 / 30

Post Correspondence Problem (Post 46) Given a finite set of dominoes with words on top and bottom halves, can we construct a finite sequence of dominoes where words on top and bottom halves are equal. Example Consider P = {[ ab abb ] [ ], bb baa, [ aaa aa [ ][ ab bb abb baa ]}. ][ aaa aa ][ ] aaa aa is a solution since both halves read abbbaaaaaa. Halava, Harju, Niskanen, Potapov Weighted Automata on Infinite Words in... CiE 2015 11 / 30

Post Correspondence Problem (Post 46) Given a finite set of dominoes with words on top and bottom halves, can we construct a finite sequence of dominoes where words on top and bottom halves are equal. Example Consider P = {[ ab abb ] [ ], bb baa, [ aaa aa ]}. [ ][ ][ ][ ] ab bb aaa ab abb baa aa abb Halava, Harju, Niskanen, Potapov Weighted Automata on Infinite Words in... CiE 2015 11 / 30

Post Correspondence Problem (Post 46) Given a finite set of dominoes with words on top and bottom halves, can we construct a finite sequence of dominoes where words on top and bottom halves are equal. Example Consider P = {[ ab abb ] [ ], bb baa, [ aaa aa ]}. [ ][ ][ ][ ] ab bb aaa ab abb baa aa abb is not a solution as abbbaaaab abbbaaaaabb Halava, Harju, Niskanen, Potapov Weighted Automata on Infinite Words in... CiE 2015 11 / 30

Post Correspondence Problem (Post 46) Given a finite set of dominoes with words on top and bottom halves, can we construct a finite sequence of dominoes where words on top and bottom halves are equal. Theorem (Matiyasevich, Senizergues 05) It is undecidable whether PCP with 7 dominoes has a solution. Halava, Harju, Niskanen, Potapov Weighted Automata on Infinite Words in... CiE 2015 11 / 30

Post Correspondence Problem (Post 46) Given a finite set of dominoes with words on top and bottom halves, can we construct a finite sequence of dominoes where words on top and bottom halves are equal. Theorem (Matiyasevich, Senizergues 05) It is undecidable whether PCP with 7 dominoes has a solution. Proof (idea) Turing Machine can be simulated with dominoes. [ ][ ][ ] conf0 conf 1 confhalt conf 0 conf 1 conf 2 Constructed in such way that words are equal if and only if TM halts. Halava, Harju, Niskanen, Potapov Weighted Automata on Infinite Words in... CiE 2015 11 / 30

Infinite Post Correspondence Problem (ωpcp) In ωpcp we are given two morphisms h, g : A B. Does there exist an infinite word w such that for all prefixes p either h(p) < g(p) or g(p) < h(p)? Shown to be undecidable by Halava and Harju for domain alphabets A 9 and improved to A 8 by Dong and Liu. Example Consider P = {[ ab abb ] [ ], bb baa [ aaa aa, [ aaa aa ][ aaa aa ]}. It has an infinite solution ][ ] aaa aa Halava, Harju, Niskanen, Potapov Weighted Automata on Infinite Words in... CiE 2015 12 / 30

Application of PCP Typically dominoes and building a sequence of dominoes are encoded into the model. The whole computation is stored. For this addition dimensions are required. Halava, Harju, Niskanen, Potapov Weighted Automata on Infinite Words in... CiE 2015 13 / 30

Application of PCP Typically dominoes and building a sequence of dominoes are encoded into the model. The whole computation is stored. For this addition dimensions are required. Our technique ω PCP is not modeled by the automaton! 1 We guess the position where letters will be unequal. 2 Then we verify that this indeed happens. 3 Can be done with only one counter. Halava, Harju, Niskanen, Potapov Weighted Automata on Infinite Words in... CiE 2015 13 / 30

Idea of construction The goal is to construct an automaton A such that L(A) = A ω if and only if the instance of ωpcp has no solution. An infinite word w A ω is accepted by A if and only if for some finite prefix p of w, g(p) h(p) and h(p) g(p). Such a prefix p does exist for all infinite words except for the solutions of the instance (h, g). We call the verification of such a prefix p error checking. Halava, Harju, Niskanen, Potapov Weighted Automata on Infinite Words in... CiE 2015 14 / 30

One possible path in the automaton h : g : abaab aba A Halava, Harju, Niskanen, Potapov Weighted Automata on Infinite Words in... CiE 2015 15 / 30

One possible path in the automaton h : g : abaab aba a A ab Halava, Harju, Niskanen, Potapov Weighted Automata on Infinite Words in... CiE 2015 15 / 30

One possible path in the automaton h : g : abaab ab aab aba a baba A Halava, Harju, Niskanen, Potapov Weighted Automata on Infinite Words in... CiE 2015 15 / 30

One possible path in the automaton h : g : abaab ab aab aa aba a baba ab A Halava, Harju, Niskanen, Potapov Weighted Automata on Infinite Words in... CiE 2015 15 / 30

One possible path in the automaton h : g : abaab ab aab aa babaa k aba a baba ab a A B j k Halava, Harju, Niskanen, Potapov Weighted Automata on Infinite Words in... CiE 2015 15 / 30

One possible path in the automaton h : g : abaab ab aab aa babaa k aba a baba ab a aba A B C j k Halava, Harju, Niskanen, Potapov Weighted Automata on Infinite Words in... CiE 2015 15 / 30

One possible path in the automaton h : g : abaab ab aab aa babaa k aba a baba ab a aba b A B C j k Halava, Harju, Niskanen, Potapov Weighted Automata on Infinite Words in... CiE 2015 15 / 30

One possible path in the automaton h : g : abaab ab aab aa babaa k aba a baba ab a aba b abaa A B C l D j k i l Halava, Harju, Niskanen, Potapov Weighted Automata on Infinite Words in... CiE 2015 15 / 30

Example Corresponding automaton ω PCP instance Let g(1) = ab, g(2) = ab, h(1) = a, h(2) = b. q0 (1, 1), (2, 0) (1, 5), (2, 5) (1, 1), (1, 5) (2, 1), (2, 5) (1, 3), (2, 3) q2 (1, 5) (2, 4) (1, 0) (2, 0) q1 q4 (1, 0), (2, 0) (1, 5), (1, 7) (2, 5), (2, 7) (1, 4), (2, 5) (1, 3), (2, 3) q3 (1, 6), (2, 6) Halava, Harju, Niskanen, Potapov Weighted Automata on Infinite Words in... CiE 2015 16 / 30

Example ω PCP instance Let g(1) = ab, g(2) = ab, h(1) = a, h(2) = b. Corresponding automaton q0 (1, 1), (2, 0) (1, 5), (2, 5) q1 (1, 3), (2, 3) (1, 1), (1, 5) (2, 1), (2, 5) (1, 3), (2, 3) (1, 0) (2, 0) (1, 0), (2, 0) (1, 4), (2, 5) q2 q4 (1, 5) (2, 4) (1, 5), (1, 7) (2, 5), (2, 7) q3 (1, 6), (2, 6) w = 12122 is accepted. Halava, Harju, Niskanen, Potapov Weighted Automata on Infinite Words in... CiE 2015 17 / 30

Example ω PCP instance Let g(1) = ab, g(2) = ab, h(1) = a, h(2) = b. Corresponding automaton q0 (1, 1), (2, 0) (1, 5), (2, 5) q1 (1, 3), (2, 3) (1, 1), (1, 5) (2, 1), (2, 5) (1, 3), (2, 3) (1, 0) (2, 0) (1, 0), (2, 0) (1, 4), (2, 5) q2 q4 (1, 5) (2, 4) (1, 5), (1, 7) (2, 5), (2, 7) q3 (1, 6), (2, 6) w = 12122 is accepted. Relevant part of the automaton q0 q1 (1, 1), (1, 5) (2, 1), (2, 5) (1, 3), (2, 3) q2 (1, 0) (2, 0) q4 (1, 5) (2, 4) p = 1 g(p) = ab h(p) = a γ(p) = 3 Halava, Harju, Niskanen, Potapov Weighted Automata on Infinite Words in... CiE 2015 17 / 30

Example ω PCP instance Let g(1) = ab, g(2) = ab, h(1) = a, h(2) = b. Corresponding automaton q0 (1, 1), (2, 0) (1, 5), (2, 5) q1 (1, 3), (2, 3) (1, 1), (1, 5) (2, 1), (2, 5) (1, 3), (2, 3) (1, 0) (2, 0) (1, 0), (2, 0) (1, 4), (2, 5) q2 q4 (1, 5) (2, 4) (1, 5), (1, 7) (2, 5), (2, 7) q3 (1, 6), (2, 6) w = 12122 is accepted. Relevant part of the automaton q0 q1 (1, 1), (1, 5) (2, 1), (2, 5) (1, 3), (2, 3) q2 (1, 0) (2, 0) q4 (1, 5) (2, 4) p = 12 g(p) = abab h(p) = ab γ(p) = 3 + 3 = 6 Halava, Harju, Niskanen, Potapov Weighted Automata on Infinite Words in... CiE 2015 17 / 30

Example ω PCP instance Let g(1) = ab, g(2) = ab, h(1) = a, h(2) = b. Corresponding automaton q0 (1, 1), (2, 0) (1, 5), (2, 5) q1 (1, 3), (2, 3) (1, 1), (1, 5) (2, 1), (2, 5) (1, 3), (2, 3) (1, 0) (2, 0) (1, 0), (2, 0) (1, 4), (2, 5) q2 q4 (1, 5) (2, 4) (1, 5), (1, 7) (2, 5), (2, 7) q3 (1, 6), (2, 6) w = 12122 is accepted. Relevant part of the automaton q0 q1 (1, 1), (1, 5) (2, 1), (2, 5) (1, 3), (2, 3) q2 (1, 0) (2, 0) q4 (1, 5) (2, 4) p = 121 g(p) = ababab h(p) = aba γ(p) = 3 + 3 + 1 = 7 Halava, Harju, Niskanen, Potapov Weighted Automata on Infinite Words in... CiE 2015 17 / 30

Example ω PCP instance Let g(1) = ab, g(2) = ab, h(1) = a, h(2) = b. Corresponding automaton q0 (1, 1), (2, 0) (1, 5), (2, 5) q1 (1, 3), (2, 3) (1, 1), (1, 5) (2, 1), (2, 5) (1, 3), (2, 3) (1, 0) (2, 0) (1, 0), (2, 0) (1, 4), (2, 5) q2 q4 (1, 5) (2, 4) (1, 5), (1, 7) (2, 5), (2, 7) q3 (1, 6), (2, 6) w = 12122 is accepted. Relevant part of the automaton q0 q1 (1, 1), (1, 5) (2, 1), (2, 5) (1, 3), (2, 3) q2 (1, 0) (2, 0) q4 (1, 5) (2, 4) p = 1212 g(p) = abababab h(p) = abab γ(p) = 3 + 3 + 1 + ( 3) = 4 Halava, Harju, Niskanen, Potapov Weighted Automata on Infinite Words in... CiE 2015 17 / 30

Example ω PCP instance Let g(1) = ab, g(2) = ab, h(1) = a, h(2) = b. Corresponding automaton q0 (1, 1), (2, 0) (1, 5), (2, 5) q1 (1, 3), (2, 3) (1, 1), (1, 5) (2, 1), (2, 5) (1, 3), (2, 3) (1, 0) (2, 0) (1, 0), (2, 0) (1, 4), (2, 5) q2 q4 (1, 5) (2, 4) (1, 5), (1, 7) (2, 5), (2, 7) q3 (1, 6), (2, 6) w = 12122 is accepted. Relevant part of the automaton q0 q1 (1, 1), (1, 5) (2, 1), (2, 5) (1, 3), (2, 3) q2 (1, 0) (2, 0) q4 (1, 5) (2, 4) p = 12122 g(p) = ababababab h(p) = ababb γ(p) = 3 + 3 + 1 3 + ( 4) = 0 Halava, Harju, Niskanen, Potapov Weighted Automata on Infinite Words in... CiE 2015 17 / 30

Example ω PCP instance Let g(1) = ab, g(2) = ab, h(1) = a, h(2) = b. Corresponding automaton q0 (1, 1), (2, 0) (1, 5), (2, 5) q1 (1, 3), (2, 3) (1, 1), (1, 5) (2, 1), (2, 5) (1, 3), (2, 3) (1, 0) (2, 0) (1, 0), (2, 0) (1, 4), (2, 5) q2 q4 (1, 5) (2, 4) (1, 5), (1, 7) (2, 5), (2, 7) q3 (1, 6), (2, 6) w = (12) ω is not accepted. Halava, Harju, Niskanen, Potapov Weighted Automata on Infinite Words in... CiE 2015 18 / 30

Example ω PCP instance Let g(1) = ab, g(2) = ab, h(1) = a, h(2) = b. Corresponding automaton q0 (1, 1), (2, 0) (1, 5), (2, 5) q1 (1, 3), (2, 3) (1, 1), (1, 5) (2, 1), (2, 5) (1, 3), (2, 3) (1, 0) (2, 0) (1, 0), (2, 0) (1, 4), (2, 5) q2 q4 (1, 5) (2, 4) (1, 5), (1, 7) (2, 5), (2, 7) q3 (1, 6), (2, 6) w = (12) ω is not accepted. Relevant part of the automaton q0 q1 (1, 1), (1, 5) (2, 1), (2, 5) (1, 3), (2, 3) q2 (1, 0) (2, 0) q4 (1, 5) (2, 4) p = 1 g(p) = ab h(p) = a γ(p) = 3 Halava, Harju, Niskanen, Potapov Weighted Automata on Infinite Words in... CiE 2015 18 / 30

Example ω PCP instance Let g(1) = ab, g(2) = ab, h(1) = a, h(2) = b. Corresponding automaton q0 (1, 1), (2, 0) (1, 5), (2, 5) q1 (1, 3), (2, 3) (1, 1), (1, 5) (2, 1), (2, 5) (1, 3), (2, 3) (1, 0) (2, 0) (1, 0), (2, 0) (1, 4), (2, 5) q2 q4 (1, 5) (2, 4) (1, 5), (1, 7) (2, 5), (2, 7) q3 (1, 6), (2, 6) w = (12) ω is not accepted. Relevant part of the automaton q0 q1 (1, 1), (1, 5) (2, 1), (2, 5) (1, 3), (2, 3) q2 (1, 0) (2, 0) q4 (1, 5) (2, 4) p = 12 g(p) = abab h(p) = ab γ(p) = 3 + 1 = 4 Halava, Harju, Niskanen, Potapov Weighted Automata on Infinite Words in... CiE 2015 18 / 30

Example ω PCP instance Let g(1) = ab, g(2) = ab, h(1) = a, h(2) = b. Corresponding automaton q0 (1, 1), (2, 0) (1, 5), (2, 5) q1 (1, 3), (2, 3) (1, 1), (1, 5) (2, 1), (2, 5) (1, 3), (2, 3) (1, 0) (2, 0) (1, 0), (2, 0) (1, 4), (2, 5) q2 q4 (1, 5) (2, 4) (1, 5), (1, 7) (2, 5), (2, 7) q3 (1, 6), (2, 6) w = (12) ω is not accepted. Relevant part of the automaton q0 q1 (1, 1), (1, 5) (2, 1), (2, 5) (1, 3), (2, 3) q2 (1, 0) (2, 0) q4 (1, 5) (2, 4) p = 121 g(p) = ababab h(p) = aba γ(p) = 3 + 1 + ( 5) = 1 Halava, Harju, Niskanen, Potapov Weighted Automata on Infinite Words in... CiE 2015 18 / 30

Additional paths are needed for different forms of PCP instances: Image under h is longer and error is far away. (part C is non-empty) Image under g is longer and error is far away. (part C is non-empty) Image under h is longer and error is close. (part C is empty, parts B and D are done simultaneously) Image under g is longer and error is close. (part C is empty, parts B and D are done simultaneously) h : g : abaab ab aab aa babaa k aba a baba ab a aba b abaa A B C l D j k i l Halava, Harju, Niskanen, Potapov Weighted Automata on Infinite Words in... CiE 2015 19 / 30

Theorem It is undecidable whether or not L(A) = A ω holds for 5-state integer weighted automata A on infinite words over alphabet A. Halava, Harju, Niskanen, Potapov Weighted Automata on Infinite Words in... CiE 2015 20 / 30

Attacker-Defender Games Two players: Attacker, Defender. Players play in turns using available moves. Initial and target configurations. Configuration is a sequence of alternating moves. Play is an infinite sequence of configurations. Attacker wins if target configuration is in reachable in a play starting from initial configuration. Otherwise Defender wins. Halava, Harju, Niskanen, Potapov Weighted Automata on Infinite Words in... CiE 2015 21 / 30

Games we consider 1 Weighted Word Games 2 Word Game on pairs of group words 3 Matrix Games on vectors 4 Braid Games Halava, Harju, Niskanen, Potapov Weighted Automata on Infinite Words in... CiE 2015 22 / 30

Weighted Word Games Players are given sets of words over free group alphabet. Defender plays a word of the automaton letter by letter. Attacker plays words corresponding to the letter played by Defender and respecting the structure of the automaton. Attacker tries to reach the word corresponding to the accepting configuration starting from the word corresponding to the initial configuration. Attacker has a winning strategy if and only if every word that Defender plays is accepted, that is the automaton is universal. Halava, Harju, Niskanen, Potapov Weighted Automata on Infinite Words in... CiE 2015 23 / 30

Word Games on pairs of group words Similar to Weighted Word Games but now the weight is encoded as a unary word. Using an additional trick, initial and final words are (ε, ε). Attacker has a winning strategy if and only if every word that Defender plays is accepted, that is the automaton is universal. Halava, Harju, Niskanen, Potapov Weighted Automata on Infinite Words in... CiE 2015 24 / 30

Idea of construction for Word Game Initial word q 0. Defender plays letter a. Current word: q 0 a Halava, Harju, Niskanen, Potapov Weighted Automata on Infinite Words in... CiE 2015 25 / 30

Idea of construction for Word Game Initial word q 0. Defender plays letter a. Current word: q 0 a Attacker plays word a q 0 q 1 corresponding to transition q 0, a, q 1. Current word: q 0 a(a q 0 q 1 ) = q 1 Halava, Harju, Niskanen, Potapov Weighted Automata on Infinite Words in... CiE 2015 25 / 30

Idea of construction for Word Game Initial word q 0. Defender plays letter a. Current word: q 0 a Attacker plays word a q 0 q 1 corresponding to transition q 0, a, q 1. Current word: q 0 a(a q 0 q 1 ) = q 1 Defender plays letter b. Current word: q 1 b Halava, Harju, Niskanen, Potapov Weighted Automata on Infinite Words in... CiE 2015 25 / 30

Idea of construction for Word Game Initial word q 0. Defender plays letter a. Current word: q 0 a Attacker plays word a q 0 q 1 corresponding to transition q 0, a, q 1. Current word: q 0 a(a q 0 q 1 ) = q 1 Defender plays letter b. Current word: q 1 b Attacker plays word bq 1 q 2 corresponding to transition q 1, b, q 2. Current word: q 1 b(bq 1 q 2 ) = q 2 Halava, Harju, Niskanen, Potapov Weighted Automata on Infinite Words in... CiE 2015 25 / 30

Idea of construction for Word Game Initial word q 0. Defender plays letter a. Current word: q 0 a Attacker plays word a q 0 q 1 corresponding to transition q 0, a, q 1. Current word: q 0 a(a q 0 q 1 ) = q 1 Defender plays letter b. Current word: q 1 b Attacker plays word bq 1 q 2 corresponding to transition q 1, b, q 2. Current word: q 1 b(bq 1 q 2 ) = q 2 If Attacker does not match the letter or plays incorrect transition, uncancellable elements will remain. In actual Word Game, the construction is slightly more complicated. Halava, Harju, Niskanen, Potapov Weighted Automata on Infinite Words in... CiE 2015 25 / 30

Counter Example (In previous construction, Attacker commits to a path, while Defender does not commit to a word.) Universal automaton q0 (a, 1) q1 (b, 0) (a, 1) (b, 0) (a, 1) (a, 0) (b, 1) q2 (a, 0) (b, 0) Now from q 0, Defender plays a. If Attacker plays a q 0 q 1, then Defender will play only b and there is no path with 0 weight. If Attacker plays a q 0 q 2, then Defender will play only a and there is no path with 0 weight. Halava, Harju, Niskanen, Potapov Weighted Automata on Infinite Words in... CiE 2015 26 / 30

Matrix Games Players are given sets of matrices from SL(n, Z). Starting from initial vector x 0, players apply their matrices in turns. Attacker s goal is to reach x 0. We encode words from Word Games on pair of words into 4 4 matrices. Since matrices are from SL(4, Z), this is only possible when matrix played by the players is the identity matrix. Identity matrix is reachable if and only if the empty word is reachable in the Word Game. N2 M1 N1 x0 x M2 Halava, Harju, Niskanen, Potapov Weighted Automata on Infinite Words in... CiE 2015 27 / 30

Braid Games Two variants - played on 3 (B 3 ) or 5 strands (B 5 ). Players are given sets of braid words. In B 3, starting from a braid word corresponding to the initial word of Weighted Word Game, Attacker s aim is to reach the trivial braid. B 5 contains direct product of two free groups of rank 2 as a subgroup. We encode words of Word Game on pair of words into braids. In both variants, the trivial braid is reachable if and only if the empty word is reachable in the corresponding Word Game. = Halava, Harju, Niskanen, Potapov Weighted Automata on Infinite Words in... CiE 2015 28 / 30

Conclusion and open questions Matrix Game is open for dimensions 2, 3. Braid Game starting from particular word is completed. B 2 is isomorphic to (Z, +). Braid Game starting from trivial braid is open for B 3, B 4. Same technique cannot be applied, as B 4 does not have direct product of two free groups. Application of the automaton to other games, models, etc... Halava, Harju, Niskanen, Potapov Weighted Automata on Infinite Words in... CiE 2015 29 / 30

THANK YOU! Halava, Harju, Niskanen, Potapov Weighted Automata on Infinite Words in... CiE 2015 30 / 30