{"id":202,"date":"2015-04-23T12:18:45","date_gmt":"2015-04-23T10:18:45","guid":{"rendered":"http:\/\/duch.mimuw.edu.pl\/~bojan\/podpunkt\/?page_id=202"},"modified":"2017-10-31T12:56:07","modified_gmt":"2017-10-31T11:56:07","slug":"3-the-schutzenberger-theorem","status":"publish","type":"page","link":"https:\/\/www.mimuw.edu.pl\/~bojan\/20142015-2\/alg\/3-the-schutzenberger-theorem","title":{"rendered":"3. The Sch\u00fctzenberger Theorem"},"content":{"rendered":"<p>The theorem is part of a bigger picture, which is the\u00a0strong connection between automata, monoids and logic. It turns out that, when studying regular languages, the most natural logic is not the classical first-order logic, but a\u00a0more expressive logic called\u00a0<em>monadic second-order logic<\/em>,\u00a0which has the same expressive power as regular languages.<em>\u00a0<\/em>The Sch\u00fctzenberger theorem in this logic is best understood as part of this bigger picture: it explains the expressive power of first-order logic as a fragment of monadic-second order logic. Since monadic second-order logic is outside the scope of this lecture, we do not talk about\u00a0it below, and we define only the minimal amount of logical material that is necessary to state and prove the theorem.<\/p>\n<hr \/>\n<p>&nbsp;<\/p>\n<p><strong>First-order logic<\/strong><\/p>\n<p>Consider the\u00a0property &#8220;for every position that has label\u00a0<em>a,\u00a0<\/em>there is a later position that has label\u00a0<em>b&#8221;.\u00a0<\/em>This property can be formalized in the language of logic as <\/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-f1120d79dcade7d1db1325ff45857365_l3.png\" height=\"16\" width=\"182\" class=\"ql-img-displayed-equation quicklatex-auto-format\" alt=\"&#92;&#91;&#92;&#102;&#111;&#114;&#97;&#108;&#108;&#32;&#120;&#32;&#97;&#40;&#120;&#41;&#32;&#92;&#82;&#105;&#103;&#104;&#116;&#97;&#114;&#114;&#111;&#119;&#32;&#92;&#101;&#120;&#105;&#115;&#116;&#115;&#32;&#121;&#32;&#40;&#120;&#32;&#60;&#32;&#121;&#32;&#92;&#108;&#97;&#110;&#100;&#32;&#98;&#40;&#121;&#41;&#41;&#92;&#93;\" title=\"Rendered by QuickLaTeX.com\"\/><\/p>\n<p>This is the idea behind\u00a0<em>first-order definable languages of words.\u00a0<\/em>One uses formulas, where the variables quantify over positions of the word, with a binary predicate <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-083f511c3de8bb8de7810776d94d20c2_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#120;&#32;&#60;&#32;&#121;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"38\" style=\"vertical-align: -3px;\"\/> that denotes the order on positions, and with unary predicates of the form <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-de97c49c7704d697b778b2dd92d2913e_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#97;&#40;&#120;&#41;\" title=\"Rendered by QuickLaTeX.com\" height=\"16\" width=\"28\" style=\"vertical-align: -4px;\"\/> to test the labels of positions. A set of words is called\u00a0<em>first-order\u00a0<\/em><em>definable\u00a0<\/em>if there is a formula of this kind that is true on words from the set and false in other words. The term &#8220;first-order&#8221; refer to the fact that the logic can only quantify over single positions, as opposed to quantification over sets of positions, or sets of sets of positions, which would be possible in higher-order logics (e.g. monadic second-order logic mentioned above is allowed to quantify over sets of positions, but not sets of pairs of positions).<\/p>\n<p><strong>Example.\u00a0<\/strong>The language <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-e9ce52701311ca14d0c387bd2f024e09_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#40;&#97;&#43;&#98;&#41;&#94;&#42;&#98;\" title=\"Rendered by QuickLaTeX.com\" height=\"16\" width=\"59\" style=\"vertical-align: -4px;\"\/> is definable in first-order logic, using the formula given above.<\/p>\n<hr \/>\n<p><strong>Star-free expressions.\u00a0<\/strong><\/p>\n<p>Star-free expressions are, essentially, a minor variation on first-order logic. A <em>star-free expression<\/em> is a regular expression that does not use the star, but it can use complementation (with respect to an alphabet that is implicit in the expression). For example, if the input alphabet is <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-aeb6fee794feaade92eebde4e9865fd9_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#83;&#105;&#103;&#109;&#97;\" title=\"Rendered by QuickLaTeX.com\" height=\"11\" width=\"11\" style=\"vertical-align: 0px;\"\/>, then the complement of the empty set is a star-free expression that describes <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-dd9e926acd5eebf940a5272c41665efa_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#83;&#105;&#103;&#109;&#97;&#94;&#42;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"17\" style=\"vertical-align: 0px;\"\/>. Using this expression, one can e.g. define the set of words that contain at least one letter <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-b9876851baf92019e82e43590932dc73_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#97;\" title=\"Rendered by QuickLaTeX.com\" height=\"7\" width=\"8\" style=\"vertical-align: 0px;\"\/>, this is <\/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-330c7a955a12f51a5481394096bbfa32_l3.png\" height=\"16\" width=\"89\" class=\"ql-img-displayed-equation quicklatex-auto-format\" alt=\"&#92;&#91;&#40;&#92;&#110;&#101;&#103;&#32;&#92;&#101;&#109;&#112;&#116;&#121;&#115;&#101;&#116;&#41;&#32;&#92;&#99;&#100;&#111;&#116;&#32;&#97;&#32;&#92;&#99;&#100;&#111;&#116;&#32;&#40;&#92;&#110;&#101;&#103;&#32;&#92;&#101;&#109;&#112;&#116;&#121;&#115;&#101;&#116;&#41;&#92;&#93;\" title=\"Rendered by QuickLaTeX.com\"\/><\/p>\n<hr \/>\n<p><strong>Aperiodic monoids.<\/strong><\/p>\n<p>Call a finite monoid\u00a0<em>aperiodic\u00a0<\/em>if for every <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;\"\/> in the monoid, the sequence <\/p>\n<p class=\"ql-center-displayed-equation\" style=\"line-height: 18px;\"><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-e2a1fe296e66851023fb0f2ba548e7f4_l3.png\" height=\"18\" width=\"92\" class=\"ql-img-displayed-equation quicklatex-auto-format\" alt=\"&#92;&#91;&#109;&#44;&#109;&#94;&#50;&#44;&#109;&#94;&#51;&#44;&#92;&#108;&#100;&#111;&#116;&#115;&#92;&#93;\" title=\"Rendered by QuickLaTeX.com\"\/><\/p>\n<p> is ultimately constant. It is easy to see that this is equivalent to saying that every <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;\"\/> in the monoid satisfies <\/p>\n<p class=\"ql-center-displayed-equation\" style=\"line-height: 15px;\"><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-a1d8401cef72bffd1df23f582cdaeeeb_l3.png\" height=\"15\" width=\"84\" class=\"ql-img-displayed-equation quicklatex-auto-format\" alt=\"&#92;&#91;&#109;&#94;&#92;&#35;&#32;&#32;&#61;&#109;&#94;&#123;&#92;&#35;&#125;&#109;&#92;&#93;\" title=\"Rendered by QuickLaTeX.com\"\/><\/p>\n<p> where <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-6c548e9665e6b69bddd2652d54ad676f_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#109;&#94;&#92;&#35;\" title=\"Rendered by QuickLaTeX.com\" height=\"14\" width=\"24\" style=\"vertical-align: 0px;\"\/> is the idempotent power discussed <a title=\"2. Green\u2019s relations\" href=\"https:\/\/www.mimuw.edu.pl\/~bojan\/20142015-2\/alg\/2-greens-relations\">here<\/a>.<\/p>\n<hr \/>\n<p>&nbsp;<\/p>\n<p><strong>The Sch\u00fctzenberger theorem.\u00a0<\/strong><\/p>\n<p>We are now ready to state the Sch\u00fctzenberger theorem.<\/p>\n<p><strong>Theorem. <\/strong>For a language\u00a0<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-a6ccb424a819b1bee6d09fa6b1b2b4c1_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#76;&#32;&#92;&#115;&#117;&#98;&#115;&#101;&#116;&#101;&#113;&#32;&#65;&#94;&#42;\" title=\"Rendered by QuickLaTeX.com\" height=\"14\" width=\"49\" style=\"vertical-align: -2px;\"\/>, the following conditions are equivalent:<\/p>\n<ol>\n<li><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;\"\/> is definable by a star-free expression;<\/li>\n<li><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;\"\/> is definable in first-order logic;<\/li>\n<li>the syntactic monoid of <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;\"\/> is aperiodic.<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<p>Technically speaking, Sch\u00fctzenberger proved only the equivalence of 1 and 3, and the addition of 2 is due to McNaughton and Papert. The addition of 2 is not a big deal: the implication from 1 to 2 is done via a routine induction on the size of a star-free expression, while the implication from 2 to 3 is proved the same way as the implication from 1 to 3. Therefore, the theorem is essentially by Sch\u00fctzenberger.<\/p>\n<p>As mentioned above, \u00a0the implication from 1 to 2 is straightforward. The implication from 2 to 3 is proved <a title=\"From first-order definable to aperiodic\" href=\"https:\/\/www.mimuw.edu.pl\/~bojan\/20142015-2\/alg\/3-the-schutzenberger-theorem\/from-first-order-definable-to-aperiodic\">here<\/a>, while the implication from 3 to 1 is proved <a title=\"From aperiodic to star-free\" href=\"https:\/\/www.mimuw.edu.pl\/~bojan\/20142015-2\/alg\/3-the-schutzenberger-theorem\/from-aperiodic-to-star-free\">here<\/a>.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The theorem is part of a bigger picture, which is the\u00a0strong connection between automata, monoids and logic. It turns out that, when studying regular languages, the most natural logic is not the classical first-order logic, but a\u00a0more expressive logic called\u00a0monadic second-order logic,\u00a0which has the same expressive power as regular languages.\u00a0The Sch\u00fctzenberger theorem in this logic [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":42,"menu_order":0,"comment_status":"open","ping_status":"open","template":"","meta":{"_acf_changed":false,"inline_featured_image":false,"footnotes":""},"class_list":["post-202","page","type-page","status-publish","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-json\/wp\/v2\/pages\/202"}],"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=202"}],"version-history":[{"count":4,"href":"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-json\/wp\/v2\/pages\/202\/revisions"}],"predecessor-version":[{"id":1403,"href":"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-json\/wp\/v2\/pages\/202\/revisions\/1403"}],"up":[{"embeddable":true,"href":"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-json\/wp\/v2\/pages\/42"}],"wp:attachment":[{"href":"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-json\/wp\/v2\/media?parent=202"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}