{"id":234,"date":"2015-04-23T12:44:49","date_gmt":"2015-04-23T10:44:49","guid":{"rendered":"http:\/\/duch.mimuw.edu.pl\/~bojan\/podpunkt\/?page_id=234"},"modified":"2017-10-31T12:59:56","modified_gmt":"2017-10-31T11:59:56","slug":"zigzag-game","status":"publish","type":"page","link":"https:\/\/www.mimuw.edu.pl\/~bojan\/20142015-2\/alg\/5-piecewise-testable-languages\/zigzag-game","title":{"rendered":"Zigzag Game"},"content":{"rendered":"<p>The <a title=\"Zigzags\" href=\"https:\/\/www.mimuw.edu.pl\/~bojan\/20142015-2\/alg\/5-piecewise-testable-languages\/zigzags\">Zigzag Theorem<\/a> says that two languages <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-7b2a7bcd1d1f12589ab1d1c8060505f4_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#76;&#44;&#75;&#32;&#92;&#115;&#117;&#98;&#115;&#101;&#116;&#101;&#113;&#32;&#65;&#94;&#42;\" title=\"Rendered by QuickLaTeX.com\" height=\"15\" width=\"71\" style=\"vertical-align: -3px;\"\/> can be separated by a piecewise testable language if and only if there is no infinite zigzag between them. Therefore, to prove that separability is decidable, it suffices to decide if there\u00a0exist infinite zigzags. We begin by phrasing the problem in purely monoid terms.<\/p>\n<p>Let <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-361fcbd59862666c6a4178483821b904_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#77;\" title=\"Rendered by QuickLaTeX.com\" height=\"11\" width=\"17\" style=\"vertical-align: 0px;\"\/> be a finite monoid. Define a\u00a0<em>zigzag between <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-f534bd11bc93f2298466b1bed06cc7b8_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#109;&#44;&#110;&#32;&#92;&#105;&#110;&#32;&#77;\" title=\"Rendered by QuickLaTeX.com\" height=\"14\" width=\"66\" style=\"vertical-align: -3px;\"\/>\u00a0<\/em>to be a zigzag over the alphabet <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-361fcbd59862666c6a4178483821b904_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#77;\" title=\"Rendered by QuickLaTeX.com\" height=\"11\" width=\"17\" style=\"vertical-align: 0px;\"\/>, which alternates between words of type <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-a27dd73ff3c909d2773964c02b4a4298_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#109;\" title=\"Rendered by QuickLaTeX.com\" height=\"7\" width=\"14\" style=\"vertical-align: 0px;\"\/> and type <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-1581bd603826320b358d867162d09127_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#110;\" title=\"Rendered by QuickLaTeX.com\" height=\"7\" width=\"9\" style=\"vertical-align: 0px;\"\/>. \u00a0The following fact is easy to see.<\/p>\n<p><strong>Fact.\u00a0<\/strong>Let languages <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-7b2a7bcd1d1f12589ab1d1c8060505f4_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#76;&#44;&#75;&#32;&#92;&#115;&#117;&#98;&#115;&#101;&#116;&#101;&#113;&#32;&#65;&#94;&#42;\" title=\"Rendered by QuickLaTeX.com\" height=\"15\" width=\"71\" style=\"vertical-align: -3px;\"\/> be\u00a0recognised by a surjective monoid morphism <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-832c4198b15d65c226048a25c7574b25_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#104;&#32;&#58;&#32;&#65;&#94;&#42;&#32;&#92;&#116;&#111;&#32;&#77;\" title=\"Rendered by QuickLaTeX.com\" height=\"13\" width=\"82\" style=\"vertical-align: -1px;\"\/>. Then\u00a0there is a zigzag between <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-c2289d1b720dbeb200c7be3944b43068_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#76;\" title=\"Rendered by QuickLaTeX.com\" height=\"11\" width=\"10\" style=\"vertical-align: 0px;\"\/> and <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-a1f49e25180030be8e0e2be723217e06_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#75;\" title=\"Rendered by QuickLaTeX.com\" height=\"11\" width=\"14\" style=\"vertical-align: 0px;\"\/> if and only if in the monoid <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-361fcbd59862666c6a4178483821b904_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#77;\" title=\"Rendered by QuickLaTeX.com\" height=\"11\" width=\"17\" style=\"vertical-align: 0px;\"\/> there\u00a0is a zigzag beteen <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-4a275db7b334ac15a362293147833562_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#109;&#44;&#110;\" title=\"Rendered by QuickLaTeX.com\" height=\"10\" width=\"30\" style=\"vertical-align: -3px;\"\/> for some <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-8df340affdb01814258c1435e743a1dd_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#109;&#32;&#92;&#105;&#110;&#32;&#104;&#40;&#76;&#41;\" title=\"Rendered by QuickLaTeX.com\" height=\"16\" width=\"64\" style=\"vertical-align: -4px;\"\/> and <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-af1512e550894bb8e16ba5001a23ea83_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#110;&#32;&#92;&#105;&#110;&#32;&#104;&#40;&#75;&#41;\" title=\"Rendered by QuickLaTeX.com\" height=\"16\" width=\"63\" style=\"vertical-align: -4px;\"\/>.<\/p>\n<p><strong>The zigzag game.\u00a0<\/strong>By the above fact,\u00a0deciding the existence of zigzags reduces\u00a0to the question of deciding, for a given finite monoid, which pairs admits zigzags.\u00a0To characterise this, we introduce a safety game, called the <em>zigzag game<\/em>\u00a0<em>of the monoid<\/em>. The zigzag game is a special case of a <a title=\"Safety Games\" href=\"https:\/\/www.mimuw.edu.pl\/~bojan\/20142015-2\/alg\/5-piecewise-testable-languages\/safety-games\">safety game<\/a>.<\/p>\n<p>To highlight the character of the game, we call the two players\u00a0<em>Zigzag<\/em>\u00a0and <em>Doubter<\/em>, with player Zigzag playing the role of player <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-feeea53a29d15d4e9198ed4912329ce0_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#48;\" title=\"Rendered by QuickLaTeX.com\" height=\"11\" width=\"8\" style=\"vertical-align: 0px;\"\/> in a safety game \u00a0(i.e. the player who wins when the game lasts forever). \u00a0The game has two kinds of positions. Positions owned by player Zigzag are pairs <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-e02c53fbf0c32e9eb086d052c317d0ac_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#40;&#109;&#44;&#110;&#41;&#32;&#92;&#105;&#110;&#32;&#77;&#94;&#50;\" title=\"Rendered by QuickLaTeX.com\" height=\"18\" width=\"83\" style=\"vertical-align: -4px;\"\/>, while positions owned by player Doubter are words over the alphabet <\/p>\n<p class=\"ql-center-displayed-equation\" style=\"line-height: 16px;\"><span class=\"ql-right-eqno\"> &nbsp; <\/span><span class=\"ql-left-eqno\"> &nbsp; <\/span><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-ec19d48c41a3c9bb47c3c6ae163eb702_l3.png\" height=\"16\" width=\"256\" class=\"ql-img-displayed-equation quicklatex-auto-format\" alt=\"&#92;&#91;&#92;&#71;&#97;&#109;&#109;&#97;&#32;&#61;&#32;&#92;&#123;&#40;&#49;&#44;&#109;&#44;&#110;&#41;&#44;&#40;&#109;&#44;&#109;&#44;&#109;&#41;&#32;&#58;&#32;&#109;&#44;&#110;&#32;&#92;&#105;&#110;&#32;&#77;&#92;&#125;&#92;&#93;\" title=\"Rendered by QuickLaTeX.com\"\/><\/p>\n<p> The intuitive idea is that <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-f5d4784627718bfdfa7a6b8d3d978458_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#40;&#49;&#44;&#109;&#44;&#110;&#41;\" title=\"Rendered by QuickLaTeX.com\" height=\"16\" width=\"54\" style=\"vertical-align: -4px;\"\/> represents a sequence that is growing in the Higman ordering, which begins with the empty word and then alternates between <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-a27dd73ff3c909d2773964c02b4a4298_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#109;\" title=\"Rendered by QuickLaTeX.com\" height=\"7\" width=\"14\" style=\"vertical-align: 0px;\"\/> and <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-1581bd603826320b358d867162d09127_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#110;\" title=\"Rendered by QuickLaTeX.com\" height=\"7\" width=\"9\" style=\"vertical-align: 0px;\"\/>, while <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-e681311ed473196de8b11fa8c0a522ab_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#40;&#109;&#44;&#109;&#44;&#109;&#41;\" title=\"Rendered by QuickLaTeX.com\" height=\"16\" width=\"65\" style=\"vertical-align: -4px;\"\/> represents a constant sequence which has the letter <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-a27dd73ff3c909d2773964c02b4a4298_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#109;\" title=\"Rendered by QuickLaTeX.com\" height=\"7\" width=\"14\" style=\"vertical-align: 0px;\"\/> on all positions.<\/p>\n<p>The game is played as follows. In a position of the form <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-53fccad4bae116206c73b012c754f64b_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#40;&#109;&#44;&#110;&#41;\" title=\"Rendered by QuickLaTeX.com\" height=\"16\" width=\"40\" style=\"vertical-align: -4px;\"\/>, player Zigzag chooses some word <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-6478cbee7e2169ee427ecd3cb913c8f4_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#119;&#32;&#92;&#105;&#110;&#32;&#92;&#71;&#97;&#109;&#109;&#97;&#94;&#42;\" title=\"Rendered by QuickLaTeX.com\" height=\"13\" width=\"47\" style=\"vertical-align: -1px;\"\/> such that the product of the word, in the monoid <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-b9e657d9b30c7a457ee1fdab127b6228_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#77;&#94;&#51;\" title=\"Rendered by QuickLaTeX.com\" height=\"14\" width=\"23\" style=\"vertical-align: 0px;\"\/>, is equal to <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-edeb5a54368cc715343310f2010a61ae_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#40;&#109;&#44;&#110;&#44;&#109;&#41;\" title=\"Rendered by QuickLaTeX.com\" height=\"16\" width=\"61\" style=\"vertical-align: -4px;\"\/>. If there is no such word then player Zigzag loses immediately. In a position of the form <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-6478cbee7e2169ee427ecd3cb913c8f4_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#119;&#32;&#92;&#105;&#110;&#32;&#92;&#71;&#97;&#109;&#109;&#97;&#94;&#42;\" title=\"Rendered by QuickLaTeX.com\" height=\"13\" width=\"47\" style=\"vertical-align: -1px;\"\/>, player Doubter chooses some letter <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-b028347e9db2010de0f09f5328949f2b_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#40;&#120;&#44;&#121;&#44;&#122;&#41;\" title=\"Rendered by QuickLaTeX.com\" height=\"16\" width=\"49\" style=\"vertical-align: -4px;\"\/> that appears in this word, and the game continues from position <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-0f7d29f19ca481cc1a04cf4ffe94c111_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#40;&#121;&#44;&#122;&#41;\" title=\"Rendered by QuickLaTeX.com\" height=\"16\" width=\"33\" style=\"vertical-align: -4px;\"\/>. If player Doubter cannot choose a letter, i.e. <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-eedf2e7eca2b090be6b3ece6f6e31f7b_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#119;\" title=\"Rendered by QuickLaTeX.com\" height=\"7\" width=\"11\" style=\"vertical-align: 0px;\"\/> is empty, then player Doubter loses immediately.<\/p>\n<p>If the game lasts forever, then player Zigzag wins (i.e. this is a safety game where player Zigzag is the <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-feeea53a29d15d4e9198ed4912329ce0_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#48;\" title=\"Rendered by QuickLaTeX.com\" height=\"11\" width=\"8\" style=\"vertical-align: 0px;\"\/> player).<\/p>\n<p><strong>Theorem (Zigzag Game Theorem).\u00a0<\/strong>In a finite monoid <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-361fcbd59862666c6a4178483821b904_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#77;\" title=\"Rendered by QuickLaTeX.com\" height=\"11\" width=\"17\" style=\"vertical-align: 0px;\"\/>, there is a zigzag between <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-a27dd73ff3c909d2773964c02b4a4298_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#109;\" title=\"Rendered by QuickLaTeX.com\" height=\"7\" width=\"14\" style=\"vertical-align: 0px;\"\/> and <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-1581bd603826320b358d867162d09127_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#110;\" title=\"Rendered by QuickLaTeX.com\" height=\"7\" width=\"9\" style=\"vertical-align: 0px;\"\/> if and only if player Zigzag has a winning strategy from position <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-53fccad4bae116206c73b012c754f64b_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#40;&#109;&#44;&#110;&#41;\" title=\"Rendered by QuickLaTeX.com\" height=\"16\" width=\"40\" style=\"vertical-align: -4px;\"\/>.<\/p>\n<p>Before proving the above theorem, we observe how it allows us to decide whether or not there exists a zigzag between <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-a27dd73ff3c909d2773964c02b4a4298_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#109;\" title=\"Rendered by QuickLaTeX.com\" height=\"7\" width=\"14\" style=\"vertical-align: 0px;\"\/> and <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-1581bd603826320b358d867162d09127_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#110;\" title=\"Rendered by QuickLaTeX.com\" height=\"7\" width=\"9\" style=\"vertical-align: 0px;\"\/> in the monoid. In principle, the game is infinite, because player Doubter has infinitely many positions. However, one can consider a reduced version of the game, which is equivalent, and has finitely many positions.<\/p>\n<p>The reduced version of the zigzag game is defined as follows. The positions of player Zigzag are the same, i.e. they are pairs <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-53fccad4bae116206c73b012c754f64b_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#40;&#109;&#44;&#110;&#41;\" title=\"Rendered by QuickLaTeX.com\" height=\"16\" width=\"40\" style=\"vertical-align: -4px;\"\/>. The difference is in positions of player Doubter \u2013 these are now subsets of <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-6a76799f4c1833cdbda79a51e7a1783f_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#71;&#97;&#109;&#109;&#97;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"10\" style=\"vertical-align: -1px;\"\/>, of which there are finitely many. When in a position <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-53fccad4bae116206c73b012c754f64b_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#40;&#109;&#44;&#110;&#41;\" title=\"Rendered by QuickLaTeX.com\" height=\"16\" width=\"40\" style=\"vertical-align: -4px;\"\/>, instead of choosing a word in <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-6b34c29bc1760fef871b13181b0520be_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#71;&#97;&#109;&#109;&#97;&#94;&#42;\" title=\"Rendered by QuickLaTeX.com\" height=\"13\" width=\"16\" style=\"vertical-align: -1px;\"\/>, player Zigzag chooses a subset <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-d95bbc937d236912c936ef4ca7125e1f_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#88;&#32;&#92;&#115;&#117;&#98;&#115;&#101;&#116;&#101;&#113;&#32;&#92;&#71;&#97;&#109;&#109;&#97;&#94;&#42;\" title=\"Rendered by QuickLaTeX.com\" height=\"14\" width=\"51\" style=\"vertical-align: -2px;\"\/> such that there exists a word <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-bff85c6bf65c307f3ed5427a79acaf23_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#119;&#32;&#92;&#105;&#110;&#32;&#88;&#94;&#42;\" title=\"Rendered by QuickLaTeX.com\" height=\"13\" width=\"51\" style=\"vertical-align: -1px;\"\/> which evaluates to <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-edeb5a54368cc715343310f2010a61ae_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#40;&#109;&#44;&#110;&#44;&#109;&#41;\" title=\"Rendered by QuickLaTeX.com\" height=\"16\" width=\"61\" style=\"vertical-align: -4px;\"\/>. In other words, player Zigzag chooses some <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-985853afefa0f9d11b09264aa12867af_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#88;\" title=\"Rendered by QuickLaTeX.com\" height=\"11\" width=\"14\" style=\"vertical-align: 0px;\"\/> which generates in <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-edeb5a54368cc715343310f2010a61ae_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#40;&#109;&#44;&#110;&#44;&#109;&#41;\" title=\"Rendered by QuickLaTeX.com\" height=\"16\" width=\"61\" style=\"vertical-align: -4px;\"\/> in the monoid <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-b9e657d9b30c7a457ee1fdab127b6228_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#77;&#94;&#51;\" title=\"Rendered by QuickLaTeX.com\" height=\"14\" width=\"23\" style=\"vertical-align: 0px;\"\/>. In a set \u00a0<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-985853afefa0f9d11b09264aa12867af_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#88;\" title=\"Rendered by QuickLaTeX.com\" height=\"11\" width=\"14\" style=\"vertical-align: 0px;\"\/>, player Doubter simply chooses an element <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-dd997f7e82481aee9acc9bc3ad0d73ed_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#40;&#120;&#44;&#121;&#44;&#122;&#41;&#32;&#92;&#105;&#110;&#32;&#88;\" title=\"Rendered by QuickLaTeX.com\" height=\"16\" width=\"83\" style=\"vertical-align: -4px;\"\/> and the game continues from position <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-0f7d29f19ca481cc1a04cf4ffe94c111_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#40;&#121;&#44;&#122;&#41;\" title=\"Rendered by QuickLaTeX.com\" height=\"16\" width=\"33\" style=\"vertical-align: -4px;\"\/>. It is easy to see that, when restricted to positions of the form <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-53fccad4bae116206c73b012c754f64b_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#40;&#109;&#44;&#110;&#41;\" title=\"Rendered by QuickLaTeX.com\" height=\"16\" width=\"40\" style=\"vertical-align: -4px;\"\/>, the two games are equivalent, i.e. player Doubter has a winning strategy in the zigzag game if and only if he has a winning strategy in the reduced zigzag game. Since the reduced zigzag game is a safety game with a finite arena, <a title=\"Safety Games\" href=\"https:\/\/www.mimuw.edu.pl\/~bojan\/20142015-2\/alg\/5-piecewise-testable-languages\/safety-games\">one can compute<\/a> positions where player Zigzag has a winning strategy, and therefore, by equivalence of the two games and the Zigzag Game Theorem, one can decide which pairs <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-4a275db7b334ac15a362293147833562_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#109;&#44;&#110;\" title=\"Rendered by QuickLaTeX.com\" height=\"10\" width=\"30\" style=\"vertical-align: -3px;\"\/> in the monoid admit zigzags.<\/p>\n<p>It remains to prove the Zigzag Game Theorem.<\/p>\n<p><strong>Proof.\u00a0<\/strong>We only prove the more interesting left-to-right implication. We will prove that if there is a zigzag between <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-a27dd73ff3c909d2773964c02b4a4298_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#109;\" title=\"Rendered by QuickLaTeX.com\" height=\"7\" width=\"14\" style=\"vertical-align: 0px;\"\/> and <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-1581bd603826320b358d867162d09127_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#110;\" title=\"Rendered by QuickLaTeX.com\" height=\"7\" width=\"9\" style=\"vertical-align: 0px;\"\/>, then in position <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-53fccad4bae116206c73b012c754f64b_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#40;&#109;&#44;&#110;&#41;\" title=\"Rendered by QuickLaTeX.com\" height=\"16\" width=\"40\" style=\"vertical-align: -4px;\"\/> player Zigzag can choose some word <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-6478cbee7e2169ee427ecd3cb913c8f4_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#119;&#32;&#92;&#105;&#110;&#32;&#92;&#71;&#97;&#109;&#109;&#97;&#94;&#42;\" title=\"Rendered by QuickLaTeX.com\" height=\"13\" width=\"47\" style=\"vertical-align: -1px;\"\/>, such that for every letter <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-b028347e9db2010de0f09f5328949f2b_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#40;&#120;&#44;&#121;&#44;&#122;&#41;\" title=\"Rendered by QuickLaTeX.com\" height=\"16\" width=\"49\" style=\"vertical-align: -4px;\"\/> used by that word, there is a Zigzag between <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-a9d05aadf12895a71c6d64568ec8994d_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#121;\" title=\"Rendered by QuickLaTeX.com\" height=\"10\" width=\"8\" style=\"vertical-align: -3px;\"\/> and <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-7860b08da551e623a670be46763b9057_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#122;\" title=\"Rendered by QuickLaTeX.com\" height=\"7\" width=\"8\" style=\"vertical-align: 0px;\"\/>.<\/p>\n<p>To prove the above claim, we introduce some notation. Define a <em>growing sequence\u00a0<\/em>to be a\u00a0sequence\u00a0<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-063eb9bb60675128aef55bdd0741a164_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#103;&#32;&#92;&#105;&#110;&#32;&#32;&#40;&#77;&#94;&#42;&#41;&#94;&#92;&#111;&#109;&#101;&#103;&#97;\" title=\"Rendered by QuickLaTeX.com\" height=\"16\" width=\"71\" style=\"vertical-align: -4px;\"\/> which is growing\u00a0with respect to the Higman ordering, but not necessarily\u00a0<em>strictly\u00a0<\/em>growing, i.e. consecutive elements can be equal.\u00a0\u00a0The set of growing sequences forms a monoid\u00a0when\u00a0equipped with pointwise concatenation: <\/p>\n<p class=\"ql-center-displayed-equation\" style=\"line-height: 38px;\"><span class=\"ql-right-eqno\"> &nbsp; <\/span><span class=\"ql-left-eqno\"> &nbsp; <\/span><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-0833d2c1765c6e6deef3010698e435b4_l3.png\" height=\"38\" width=\"294\" class=\"ql-img-displayed-equation quicklatex-auto-format\" alt=\"&#92;&#91;&#92;&#111;&#118;&#101;&#114;&#98;&#114;&#97;&#99;&#101;&#123;&#40;&#119;&#95;&#49;&#44;&#119;&#95;&#50;&#44;&#92;&#108;&#100;&#111;&#116;&#115;&#41;&#125;&#94;&#103;&#32;&#92;&#99;&#100;&#111;&#116;&#32;&#92;&#111;&#118;&#101;&#114;&#98;&#114;&#97;&#99;&#101;&#123;&#40;&#118;&#95;&#49;&#44;&#118;&#95;&#50;&#44;&#92;&#108;&#100;&#111;&#116;&#115;&#41;&#125;&#94;&#104;&#32;&#61;&#32;&#92;&#111;&#118;&#101;&#114;&#98;&#114;&#97;&#99;&#101;&#123;&#40;&#119;&#95;&#49;&#118;&#95;&#49;&#44;&#119;&#95;&#50;&#118;&#95;&#50;&#44;&#92;&#108;&#100;&#111;&#116;&#115;&#41;&#125;&#94;&#123;&#103;&#32;&#92;&#99;&#100;&#111;&#116;&#32;&#104;&#125;&#92;&#93;\" title=\"Rendered by QuickLaTeX.com\"\/><\/p>\n<p> \u00a0Define the <em>type\u00a0<\/em>of a growing sequence <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-f3f120665f850c6a82881aea7d8128c9_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#103;\" title=\"Rendered by QuickLaTeX.com\" height=\"10\" width=\"8\" style=\"vertical-align: -3px;\"\/> to be the sequence of types of the words in <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-f3f120665f850c6a82881aea7d8128c9_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#103;\" title=\"Rendered by QuickLaTeX.com\" height=\"10\" width=\"8\" style=\"vertical-align: -3px;\"\/>, i.e. the type is an element of <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-129769cb4a3bb59575fce85f0ed7cf1d_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#77;&#94;&#92;&#111;&#109;&#101;&#103;&#97;\" title=\"Rendered by QuickLaTeX.com\" height=\"11\" width=\"25\" style=\"vertical-align: 0px;\"\/>. A zigzag between <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-a27dd73ff3c909d2773964c02b4a4298_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#109;\" title=\"Rendered by QuickLaTeX.com\" height=\"7\" width=\"14\" style=\"vertical-align: 0px;\"\/> and <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-1581bd603826320b358d867162d09127_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#110;\" title=\"Rendered by QuickLaTeX.com\" height=\"7\" width=\"9\" style=\"vertical-align: 0px;\"\/> is a growing sequence whose type is <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-f9cb8720d33384c8a5db74304e1a0227_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#109;&#44;&#110;&#44;&#109;&#44;&#110;&#44;&#92;&#108;&#100;&#111;&#116;&#115;\" title=\"Rendered by QuickLaTeX.com\" height=\"10\" width=\"91\" style=\"vertical-align: -3px;\"\/>. The left-to-right part of the theorem follows immediately from the following lemma.<\/p>\n<p><strong>Lemma.\u00a0<\/strong>If there exists a zigzag between <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-4a275db7b334ac15a362293147833562_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#109;&#44;&#110;\" title=\"Rendered by QuickLaTeX.com\" height=\"10\" width=\"30\" style=\"vertical-align: -3px;\"\/>, then there exist a zigzag which can be decomposed as \u00a0<\/p>\n<p class=\"ql-center-displayed-equation\" style=\"line-height: 10px;\"><span class=\"ql-right-eqno\"> &nbsp; <\/span><span class=\"ql-left-eqno\"> &nbsp; <\/span><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-675d5249544e3958e0ff19abcf876764_l3.png\" height=\"10\" width=\"52\" class=\"ql-img-displayed-equation quicklatex-auto-format\" alt=\"&#92;&#91;&#103;&#95;&#49;&#32;&#92;&#99;&#100;&#111;&#116;&#115;&#32;&#103;&#95;&#107;&#92;&#93;\" title=\"Rendered by QuickLaTeX.com\"\/><\/p>\n<p> \u00a0where <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-4d58c1e5e38d70dd21c2a45df9e6c3d8_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#103;&#95;&#49;&#44;&#92;&#108;&#100;&#111;&#116;&#115;&#44;&#103;&#95;&#107;\" title=\"Rendered by QuickLaTeX.com\" height=\"10\" width=\"63\" style=\"vertical-align: -3px;\"\/> are growing sequences such that each one of them has a type of the form <\/p>\n<p class=\"ql-center-displayed-equation\" style=\"line-height: 14px;\"><span class=\"ql-right-eqno\"> &nbsp; <\/span><span class=\"ql-left-eqno\"> &nbsp; <\/span><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-a22ee53219585174efa05be5b02ca8f1_l3.png\" height=\"14\" width=\"269\" class=\"ql-img-displayed-equation quicklatex-auto-format\" alt=\"&#92;&#91;&#120;&#44;&#120;&#44;&#120;&#44;&#92;&#108;&#100;&#111;&#116;&#115;&#32;&#92;&#113;&#113;&#117;&#97;&#100;&#32;&#92;&#116;&#101;&#120;&#116;&#123;&#111;&#114;&#125;&#32;&#92;&#113;&#113;&#117;&#97;&#100;&#32;&#49;&#44;&#120;&#44;&#121;&#44;&#120;&#44;&#121;&#44;&#120;&#44;&#121;&#44;&#92;&#108;&#100;&#111;&#116;&#115;&#92;&#93;\" title=\"Rendered by QuickLaTeX.com\"\/><\/p>\n<p> for some <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-8343fee861b14cd26ec7452999826850_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#120;&#44;&#121;&#32;&#92;&#105;&#110;&#32;&#77;\" title=\"Rendered by QuickLaTeX.com\" height=\"14\" width=\"60\" style=\"vertical-align: -3px;\"\/>.<\/p>\n<p>It remains to prove the lemma. Consider a zigzag between <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-a27dd73ff3c909d2773964c02b4a4298_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#109;\" title=\"Rendered by QuickLaTeX.com\" height=\"7\" width=\"14\" style=\"vertical-align: 0px;\"\/> and <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-1581bd603826320b358d867162d09127_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#110;\" title=\"Rendered by QuickLaTeX.com\" height=\"7\" width=\"9\" style=\"vertical-align: 0px;\"\/>. Here is a picture of such a zigzag, with the rows representing words in thezigzag, and columns representing the letters (the letter is black when it first appears, and in later rows it is grey):<\/p>\n<p style=\"text-align: center;\"><a href=\"http:\/\/duch.mimuw.edu.pl\/~bojan\/podpunkt\/upload\/Screen-Shot-2015-04-01-at-11.27.36-300x121.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-237 aligncenter\" src=\"http:\/\/duch.mimuw.edu.pl\/~bojan\/podpunkt\/upload\/Screen-Shot-2015-04-01-at-11.27.36-300x121-300x121.png\" alt=\"Screen-Shot-2015-04-01-at-11.27.36-300x121\" width=\"300\" height=\"121\" \/><\/a><\/p>\n<p>Note that the picture has actually infinitely many columns, because each row introduces a new letter (and therefore the set of columns is some countable totally ordered set). Each block of consecutive columns represents a growing sequence. \u00a0The first row in the zigzag has a finite number of letters, say <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-5fc287f6a1686dee0794a092dcc5d66b_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#107;\" title=\"Rendered by QuickLaTeX.com\" height=\"11\" width=\"8\" style=\"vertical-align: 0px;\"\/>. (In the above picture, <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-3e8527dcf346cc4c5c46fba782c23926_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#107;&#61;&#50;\" title=\"Rendered by QuickLaTeX.com\" height=\"11\" width=\"36\" style=\"vertical-align: 0px;\"\/>.) \u00a0Let us distinguish these letters as <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-5fc287f6a1686dee0794a092dcc5d66b_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#107;\" title=\"Rendered by QuickLaTeX.com\" height=\"11\" width=\"8\" style=\"vertical-align: 0px;\"\/> columns (i.e. constant growing sequences), pictured in red below:<\/p>\n<p style=\"text-align: center;\"><a href=\"http:\/\/duch.mimuw.edu.pl\/~bojan\/podpunkt\/upload\/Screen-Shot-2015-04-01-at-11.52.13-300x119.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-236\" src=\"http:\/\/duch.mimuw.edu.pl\/~bojan\/podpunkt\/upload\/Screen-Shot-2015-04-01-at-11.52.13-300x119-300x119.png\" alt=\"Screen-Shot-2015-04-01-at-11.52.13-300x119\" width=\"300\" height=\"119\" \/><\/a><\/p>\n<p>The red columns are constant sequences, in particular growing sequences, and therefore each red column has a type of the form <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-b0dacd2b391dc02ace502ab595d00250_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#120;&#44;&#120;&#44;&#120;&#44;&#92;&#108;&#100;&#111;&#116;&#115;\" title=\"Rendered by QuickLaTeX.com\" height=\"10\" width=\"64\" style=\"vertical-align: -3px;\"\/> as required in the lemma.\u00a0Let us group the remaining columns, so that columns are in the same group if they are not separated by red columns, i.e. columns that correspond to letters from the first row.\u00a0This is shown in the \u00a0following picture, with\u00a0the remaining columns grouped into blue groups:<\/p>\n<p style=\"text-align: center;\">\u00a0<a href=\"http:\/\/duch.mimuw.edu.pl\/~bojan\/podpunkt\/upload\/Screen-Shot-2015-04-01-at-10.45.15-300x117.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-235\" src=\"http:\/\/duch.mimuw.edu.pl\/~bojan\/podpunkt\/upload\/Screen-Shot-2015-04-01-at-10.45.15-300x117-300x117.png\" alt=\"Screen-Shot-2015-04-01-at-10.45.15-300x117\" width=\"300\" height=\"117\" \/><\/a><\/p>\n<p>Clearly there will be at most <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-1beb6ded8f4202fb1db67c10538e95f5_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#107;&#43;&#49;\" title=\"Rendered by QuickLaTeX.com\" height=\"13\" width=\"35\" style=\"vertical-align: -2px;\"\/> blue groups, and each one will be a growing sequence. Furthermore, each blue group begins with the empty word, i.e. its type begins with <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-2807c0cf30a938b52105c42c9e2dd2db_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#49;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"6\" style=\"vertical-align: -1px;\"\/>. Using the pigeon hole principle, we can remove rows so that the result is still a zigzag between <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-a27dd73ff3c909d2773964c02b4a4298_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#109;\" title=\"Rendered by QuickLaTeX.com\" height=\"7\" width=\"14\" style=\"vertical-align: 0px;\"\/> and <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-1581bd603826320b358d867162d09127_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#110;\" title=\"Rendered by QuickLaTeX.com\" height=\"7\" width=\"9\" style=\"vertical-align: 0px;\"\/>, but each of the blue groups has a type of the form <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-8293dd516e27480a5ffeb4a3cd764a9b_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#49;&#44;&#120;&#44;&#121;&#44;&#120;&#44;&#121;&#44;&#92;&#108;&#100;&#111;&#116;&#115;\" title=\"Rendered by QuickLaTeX.com\" height=\"14\" width=\"93\" style=\"vertical-align: -3px;\"\/> as required by the lemma. This completes the proof of the lemma and of the the theorem. <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-b06cee67d5b1a769f0a344ace98d5692_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#66;&#111;&#120;\" title=\"Rendered by QuickLaTeX.com\" height=\"11\" width=\"11\" style=\"vertical-align: 0px;\"\/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>The Zigzag Theorem says that two languages can be separated by a piecewise testable language if and only if there is no infinite zigzag between them. Therefore, to prove that separability is decidable, it suffices to decide if there\u00a0exist infinite zigzags. We begin by phrasing the problem in purely monoid terms. Let be a finite [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":212,"menu_order":1,"comment_status":"open","ping_status":"open","template":"","meta":{"_acf_changed":false,"inline_featured_image":false,"footnotes":""},"class_list":["post-234","page","type-page","status-publish","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-json\/wp\/v2\/pages\/234"}],"collection":[{"href":"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-json\/wp\/v2\/comments?post=234"}],"version-history":[{"count":7,"href":"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-json\/wp\/v2\/pages\/234\/revisions"}],"predecessor-version":[{"id":1405,"href":"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-json\/wp\/v2\/pages\/234\/revisions\/1405"}],"up":[{"embeddable":true,"href":"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-json\/wp\/v2\/pages\/212"}],"wp:attachment":[{"href":"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-json\/wp\/v2\/media?parent=234"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}