{"id":719,"date":"2015-10-26T15:21:52","date_gmt":"2015-10-26T14:21:52","guid":{"rendered":"http:\/\/www.mimuw.edu.pl\/~bojan\/?page_id=719"},"modified":"2015-10-26T15:21:52","modified_gmt":"2015-10-26T14:21:52","slug":"syntactic-weighted-automata","status":"publish","type":"page","link":"https:\/\/www.mimuw.edu.pl\/~bojan\/20152016-2\/jezyki-automaty-i-obliczenia-2\/3-weighted-automata\/syntactic-weighted-automata","title":{"rendered":"Syntactic weighted automata"},"content":{"rendered":"<p>In this part of the lecture, we prove a Myhill-Nerode style theorem for weighted automata, which says that for every weighted automaton, there is a canonical one that recognises the same language, and is minimal in a certain sense. One way of stating the minimality condition\u00a0is to use\u00a0homomorphisms of weighted automata, as defined below.<\/p>\n<p>&nbsp;<\/p>\n<hr \/>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p><b>Homomorphisms of weighted automata. <\/b>Suppose that we have two weighted automata <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-f16d6da9ded8f3e09765c12237d84d20_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#65;&#97;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"13\" style=\"vertical-align: -1px;\"\/> and <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-619706c4afc6239114a40c6905e1b34e_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#65;&#97;&#39;\" title=\"Rendered by QuickLaTeX.com\" height=\"14\" width=\"16\" style=\"vertical-align: -1px;\"\/>\u00a0over the same input alphabet <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;\"\/>. A <em>homomorphism\u00a0<\/em>from <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-f16d6da9ded8f3e09765c12237d84d20_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#65;&#97;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"13\" style=\"vertical-align: -1px;\"\/> to <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-619706c4afc6239114a40c6905e1b34e_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#65;&#97;&#39;\" title=\"Rendered by QuickLaTeX.com\" height=\"14\" width=\"16\" style=\"vertical-align: -1px;\"\/> is defined to be a linear function <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-60f817b38fe1ea150775070c85afb9ae_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#104;\" title=\"Rendered by QuickLaTeX.com\" height=\"11\" width=\"9\" style=\"vertical-align: 0px;\"\/> from the state space of <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-f16d6da9ded8f3e09765c12237d84d20_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#65;&#97;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"13\" style=\"vertical-align: -1px;\"\/>, call it <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-bed8547872890507f19a89d0b85aac65_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#81;\" title=\"Rendered by QuickLaTeX.com\" height=\"14\" width=\"12\" style=\"vertical-align: -3px;\"\/>, to the state space of <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-619706c4afc6239114a40c6905e1b34e_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#65;&#97;&#39;\" title=\"Rendered by QuickLaTeX.com\" height=\"14\" width=\"16\" style=\"vertical-align: -1px;\"\/>, call it <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-0dff6c9f48ae1a54a4712409136fb53c_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#81;&#39;\" title=\"Rendered by QuickLaTeX.com\" height=\"16\" width=\"16\" style=\"vertical-align: -3px;\"\/>, which is consistent with the structure of the two automata, in the following sense. The initial state of <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-f16d6da9ded8f3e09765c12237d84d20_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#65;&#97;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"13\" style=\"vertical-align: -1px;\"\/> is mapped to the initial state of <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-619706c4afc6239114a40c6905e1b34e_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#65;&#97;&#39;\" title=\"Rendered by QuickLaTeX.com\" height=\"14\" width=\"16\" style=\"vertical-align: -1px;\"\/>, and \u00a0the following diagrams commute for every <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-c93137d159f5917ab3023aedf59219c8_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#97;&#32;&#92;&#105;&#110;&#32;&#92;&#83;&#105;&#103;&#109;&#97;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"38\" style=\"vertical-align: -1px;\"\/><\/p>\n<p class=\"ql-center-displayed-equation\" style=\"line-height: 87px;\"><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-aee2169f3029f1b8cb07cb008087680a_l3.png\" height=\"87\" width=\"195\" class=\"ql-img-displayed-equation quicklatex-auto-format\" alt=\"&#92;&#91;&#92;&#120;&#121;&#109;&#97;&#116;&#114;&#105;&#120;&#123;&#32;&#81;&#32;&#92;&#97;&#114;&#91;&#100;&#114;&#93;&#94;&#123;&#70;&#125;&#32;&#92;&#97;&#114;&#91;&#100;&#93;&#95;&#104;&#32;&#92;&#92;&#32;&#81;&#39;&#32;&#92;&#97;&#114;&#91;&#114;&#93;&#95;&#123;&#70;&#39;&#125;&#32;&#38;&#32;&#92;&#102;&#105;&#101;&#108;&#100;&#125; &#92;&#113;&#113;&#117;&#97;&#100; &#92;&#120;&#121;&#109;&#97;&#116;&#114;&#105;&#120;&#123;&#32;&#81;&#32;&#92;&#97;&#114;&#91;&#114;&#93;&#94;&#123;&#92;&#100;&#101;&#108;&#116;&#97;&#95;&#97;&#125;&#32;&#92;&#97;&#114;&#91;&#100;&#93;&#95;&#104;&#32;&#38;&#32;&#81;&#32;&#92;&#97;&#114;&#91;&#100;&#93;&#94;&#104;&#32;&#92;&#92;&#32;&#81;&#39;&#32;&#92;&#97;&#114;&#91;&#114;&#93;&#95;&#123;&#92;&#100;&#101;&#108;&#116;&#97;&#39;&#95;&#97;&#125;&#32;&#38;&#32;&#81;&#39;&#125;&#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-bac935dfbc92133aaf7a7de6f09baede_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#70;&#44;&#70;&#39;\" title=\"Rendered by QuickLaTeX.com\" height=\"16\" width=\"34\" style=\"vertical-align: -3px;\"\/> are the output functions of the respective automata, and <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-2af710c61eda57f2a8a3d7354195afe0_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#100;&#101;&#108;&#116;&#97;&#95;&#97;&#44;&#92;&#100;&#101;&#108;&#116;&#97;&#39;&#95;&#97;\" title=\"Rendered by QuickLaTeX.com\" height=\"17\" width=\"35\" style=\"vertical-align: -4px;\"\/> are the transition functions.<\/p>\n<p>If there is such a homomorphism, then the functions computed by the two automata are the same, as can be shown by induction on the length of the input word. An\u00a0<em>isomorphism\u00a0<\/em>is a homomorphism whose inverse is also a homomorphism. It is not difficult to show that if a homomorphism is a bijection, as a function on state spaces, then it is an isomorphism.<\/p>\n<hr \/>\n<p>&nbsp;<\/p>\n<p>We now state the minimisation theorem for weighted automata. Call an automaton\u00a0<em>reachable\u00a0<\/em>if every state in its state space is a finite linear combination of reachable states, i.e. states that can be reached by reading input words.<\/p>\n<p><strong>Theorem.\u00a0<\/strong>Let <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-d483d8a88d6a311bcd7d732050976135_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#102;&#32;&#58;&#32;&#92;&#83;&#105;&#103;&#109;&#97;&#94;&#42;&#32;&#92;&#116;&#111;&#32;&#92;&#102;&#105;&#101;&#108;&#100;\" title=\"Rendered by QuickLaTeX.com\" height=\"15\" width=\"76\" style=\"vertical-align: -3px;\"\/> be a function computed by a weighted automaton. There exists a weighted automaton, called the\u00a0<em>syntactic automaton of <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-f93f283f23c84021475a1b4449b05867_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#102;\" title=\"Rendered by QuickLaTeX.com\" height=\"14\" width=\"9\" style=\"vertical-align: -3px;\"\/>, <\/em>which computes <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-f93f283f23c84021475a1b4449b05867_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#102;\" title=\"Rendered by QuickLaTeX.com\" height=\"14\" width=\"9\" style=\"vertical-align: -3px;\"\/> and\u00a0such that every reachable weighted automaton computing <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-f93f283f23c84021475a1b4449b05867_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#102;\" title=\"Rendered by QuickLaTeX.com\" height=\"14\" width=\"9\" style=\"vertical-align: -3px;\"\/> admits a homomorphism into the syntactic automaton.<\/p>\n<p><strong>Proof. \u00a0<\/strong>The proof is essentially the same as for the classical Myhill-Nerode theorem.<\/p>\n<p>Define the <em>continuation\u00a0<\/em>of a word <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-562e8e0a862a7d0e9dd2c4f8f405844a_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#119;&#32;&#92;&#105;&#110;&#32;&#92;&#83;&#105;&#103;&#109;&#97;&#94;&#42;\" title=\"Rendered by QuickLaTeX.com\" height=\"13\" width=\"48\" style=\"vertical-align: -1px;\"\/> to be the function <\/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-8029526c8d9477d32582dc46bc829014_l3.png\" height=\"16\" width=\"77\" class=\"ql-img-displayed-equation quicklatex-auto-format\" alt=\"&#92;&#91;&#118;&#32;&#92;&#109;&#97;&#112;&#115;&#116;&#111;&#32;&#102;&#40;&#119;&#118;&#41;&#44;&#92;&#93;\" title=\"Rendered by QuickLaTeX.com\"\/><\/p>\n<p> which we will denote by <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-536da44d74be482c02bd080495c8fe07_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#91;&#119;&#93;\" title=\"Rendered by QuickLaTeX.com\" height=\"16\" width=\"18\" style=\"vertical-align: -4px;\"\/>. \u00a0Before defining the syntactic automaton, we define a bigger automaton, called the <em>continuation automaton. <\/em>States of the continuation automaton are\u00a0vectors in <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-823fd0051bd3e3e21aa8435ad2bc5d2a_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#83;&#105;&#103;&#109;&#97;&#94;&#42;&#32;&#92;&#116;&#111;&#32;&#92;&#102;&#105;&#101;&#108;&#100;\" title=\"Rendered by QuickLaTeX.com\" height=\"13\" width=\"53\" style=\"vertical-align: -1px;\"\/>, which is a vector space, albeit of infinite dimension.\u00a0 The initial state is the continuation of the empty word. The output function maps a state to its value on the empty word. The transition function <\/p>\n<p class=\"ql-center-displayed-equation\" style=\"line-height: 17px;\"><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-8964fef45384b34a780bc4e146e4df1d_l3.png\" height=\"17\" width=\"103\" class=\"ql-img-displayed-equation quicklatex-auto-format\" alt=\"&#92;&#91;&#92;&#100;&#101;&#108;&#116;&#97;&#95;&#97;&#32;&#58;&#32;&#92;&#102;&#105;&#101;&#108;&#100;&#94;&#123;&#92;&#83;&#105;&#103;&#109;&#97;&#94;&#42;&#125;&#32;&#92;&#116;&#111;&#32;&#92;&#102;&#105;&#101;&#108;&#100;&#94;&#123;&#92;&#83;&#105;&#103;&#109;&#97;&#94;&#42;&#125;&#92;&#93;\" title=\"Rendered by QuickLaTeX.com\"\/><\/p>\n<p> is simply a permutation of coordinates:<\/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-d5b40ffc3693f76878b1c6ed5b9f5293_l3.png\" height=\"16\" width=\"110\" class=\"ql-img-displayed-equation quicklatex-auto-format\" alt=\"&#92;&#91;&#92;&#100;&#101;&#108;&#116;&#97;&#95;&#97;&#32;&#40;&#113;&#41;&#32;&#40;&#118;&#41;&#32;&#61;&#32;&#113;&#40;&#97;&#118;&#41;&#92;&#93;\" title=\"Rendered by QuickLaTeX.com\"\/><\/p>\n<p> It is easy to see that this function is linear, and that it maps a continuation <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-536da44d74be482c02bd080495c8fe07_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#91;&#119;&#93;\" title=\"Rendered by QuickLaTeX.com\" height=\"16\" width=\"18\" style=\"vertical-align: -4px;\"\/> to the continuation <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-db7196c333a689ae3300b0884e1863d5_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#91;&#119;&#97;&#93;\" title=\"Rendered by QuickLaTeX.com\" height=\"16\" width=\"26\" style=\"vertical-align: -4px;\"\/>. Note how the choice of the function <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-f93f283f23c84021475a1b4449b05867_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#102;\" title=\"Rendered by QuickLaTeX.com\" height=\"14\" width=\"9\" style=\"vertical-align: -3px;\"\/> only plays a role in the definition of the initial state of the automaton.<\/p>\n<p>Define the <em>syntactic automaton\u00a0<\/em>to be the continuation automaton with the state space restricted to finite linear combinations of continuations. We need to show that this automaton is well-defined, i.e. the transition functions stay within the state space. This is because the transition functions are linear, and they map continuations to continuations.<\/p>\n<p>We now show that every reachable weighted automaton recognising <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-f93f283f23c84021475a1b4449b05867_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#102;\" title=\"Rendered by QuickLaTeX.com\" height=\"14\" width=\"9\" style=\"vertical-align: -3px;\"\/> admits a homomorphism into the syntactic automaton. Let <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-f16d6da9ded8f3e09765c12237d84d20_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#65;&#97;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"13\" style=\"vertical-align: -1px;\"\/> be be such a weighted automaton, and let <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-bed8547872890507f19a89d0b85aac65_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#81;\" title=\"Rendered by QuickLaTeX.com\" height=\"14\" width=\"12\" style=\"vertical-align: -3px;\"\/> be its states. We first show that there is a homomorphism into the continuation automaton, and then we show that the image of the homomorphism is actually the syntactic automaton. Define a function <\/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-f7ed19c67c5d749c781b59620a492cd1_l3.png\" height=\"18\" width=\"83\" class=\"ql-img-displayed-equation quicklatex-auto-format\" alt=\"&#92;&#91;&#104;&#32;&#58;&#32;&#81;&#32;&#92;&#116;&#111;&#32;&#92;&#102;&#105;&#101;&#108;&#100;&#94;&#123;&#92;&#83;&#105;&#103;&#109;&#97;&#94;&#42;&#125;&#92;&#93;\" title=\"Rendered by QuickLaTeX.com\"\/><\/p>\n<p> which maps a state <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-7b295853314f2d5a3c49b7e96e28be64_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#113;\" title=\"Rendered by QuickLaTeX.com\" height=\"10\" width=\"7\" style=\"vertical-align: -3px;\"\/> to the function that maps <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;\"\/> to the value of the automaton <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-f16d6da9ded8f3e09765c12237d84d20_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#65;&#97;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"13\" style=\"vertical-align: -1px;\"\/> after reading <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;\"\/>, assuming that the initial state was changed to <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-7b295853314f2d5a3c49b7e96e28be64_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#113;\" title=\"Rendered by QuickLaTeX.com\" height=\"10\" width=\"7\" style=\"vertical-align: -3px;\"\/>. This is clearly a linear function, and it is not difficult to see that it is a homomorphism.<\/p>\n<p>It remains to show that the image of <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-60f817b38fe1ea150775070c85afb9ae_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#104;\" title=\"Rendered by QuickLaTeX.com\" height=\"11\" width=\"9\" style=\"vertical-align: 0px;\"\/> is actually the syntactic automaton. Since any homomorphism maps reachable states\u00a0to\u00a0reachable states, it follows that the image of <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-60f817b38fe1ea150775070c85afb9ae_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#104;\" title=\"Rendered by QuickLaTeX.com\" height=\"11\" width=\"9\" style=\"vertical-align: 0px;\"\/> is included in the states of the syntactic automaton (because of the assumption that <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-f16d6da9ded8f3e09765c12237d84d20_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#65;&#97;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"13\" style=\"vertical-align: -1px;\"\/> was reachable). Finally, the homomorphism <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-60f817b38fe1ea150775070c85afb9ae_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#104;\" title=\"Rendered by QuickLaTeX.com\" height=\"11\" width=\"9\" style=\"vertical-align: 0px;\"\/> has the property that if <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 an input word, then the state of <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-f16d6da9ded8f3e09765c12237d84d20_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#65;&#97;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"13\" style=\"vertical-align: -1px;\"\/> after reading <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 mapped to the continuation <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-536da44d74be482c02bd080495c8fe07_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#91;&#119;&#93;\" title=\"Rendered by QuickLaTeX.com\" height=\"16\" width=\"18\" style=\"vertical-align: -4px;\"\/>, and therefore <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-60f817b38fe1ea150775070c85afb9ae_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#104;\" title=\"Rendered by QuickLaTeX.com\" height=\"11\" width=\"9\" style=\"vertical-align: 0px;\"\/> is surjective. <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>In this part of the lecture, we prove a Myhill-Nerode style theorem for weighted automata, which says that for every weighted automaton, there is a canonical one that recognises the same language, and is minimal in a certain sense. One way of stating the minimality condition\u00a0is to use\u00a0homomorphisms of weighted automata, as defined below. &nbsp; [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":634,"menu_order":0,"comment_status":"open","ping_status":"open","template":"","meta":{"_acf_changed":false,"inline_featured_image":false,"footnotes":""},"class_list":["post-719","page","type-page","status-publish","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-json\/wp\/v2\/pages\/719"}],"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=719"}],"version-history":[{"count":6,"href":"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-json\/wp\/v2\/pages\/719\/revisions"}],"predecessor-version":[{"id":726,"href":"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-json\/wp\/v2\/pages\/719\/revisions\/726"}],"up":[{"embeddable":true,"href":"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-json\/wp\/v2\/pages\/634"}],"wp:attachment":[{"href":"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-json\/wp\/v2\/media?parent=719"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}