{"id":1211,"date":"2016-12-29T16:12:38","date_gmt":"2016-12-29T15:12:38","guid":{"rendered":"https:\/\/www.mimuw.edu.pl\/~bojan\/?page_id=1211"},"modified":"2016-12-29T16:12:38","modified_gmt":"2016-12-29T15:12:38","slug":"interpreting-a-graph-in-its-tree-decomposition","status":"publish","type":"page","link":"https:\/\/www.mimuw.edu.pl\/~bojan\/20152016-2\/jezyki-automaty-i-obliczenia-2\/monadic-second-order-logic-and-courcelles-theorem\/interpreting-a-graph-in-its-tree-decomposition","title":{"rendered":"Interpreting a graph in its tree decomposition"},"content":{"rendered":"<p>The goal of this page is to prove the following theorem.<\/p>\n<p><strong>Theorem. <\/strong><em>Let <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-2f4cc4976a18063268a04e50c161c0e2_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#107;&#32;&#92;&#105;&#110;&#32;&#92;&#78;&#97;&#116;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"39\" style=\"vertical-align: -1px;\"\/> \u00a0and let <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-8cb1ea867e2888b522709f63bc7b588a_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#118;&#97;&#114;&#112;&#104;&#105;\" title=\"Rendered by QuickLaTeX.com\" height=\"10\" width=\"10\" style=\"vertical-align: -3px;\"\/> be an mso formula over the vocabulary of graphs, i.e. using a binary relation <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-c2d6553a1ce5b71224c383c846c8ab5d_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#69;&#40;&#120;&#44;&#121;&#41;\" title=\"Rendered by QuickLaTeX.com\" height=\"16\" width=\"48\" style=\"vertical-align: -4px;\"\/>. \u00a0There is a linear time algorithm which inputs a tree decomposition of width <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;\"\/> and decides if the underlying graph satisfies <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-8cb1ea867e2888b522709f63bc7b588a_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#118;&#97;&#114;&#112;&#104;&#105;\" title=\"Rendered by QuickLaTeX.com\" height=\"10\" width=\"10\" style=\"vertical-align: -3px;\"\/>.<\/em><\/p>\n<p>Recall sourced graphs, the algebraic definition of tree decompositions that was <a href=\"https:\/\/www.mimuw.edu.pl\/~bojan\/20162017-2\/advanced-topics-in-automata-20162017-jezyki-automaty-i-obliczenia-2\/monadic-second-order-logic-and-courcelles-theorem\/tree-width\">described here<\/a>. Define <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-b7943fd16d47f9342147c0ff236a9417_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#83;&#105;&#103;&#109;&#97;&#95;&#107;\" title=\"Rendered by QuickLaTeX.com\" height=\"14\" width=\"18\" style=\"vertical-align: -3px;\"\/> to be the following ranked alphabet. For every sourced graph with 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;\"\/> vertices and at most <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;\"\/> sources contained in <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-c89dac2e0c6c72f6fc276543e84e2bd8_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#115;&#101;&#116;&#123;&#49;&#44;&#92;&#108;&#100;&#111;&#116;&#115;&#44;&#50;&#107;&#125;\" title=\"Rendered by QuickLaTeX.com\" height=\"16\" width=\"73\" style=\"vertical-align: -4px;\"\/> we have a rank zero letter. For every set <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-5f903a794b38276aea62477e49e28a3e_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#88;&#32;&#92;&#115;&#117;&#98;&#115;&#101;&#116;&#101;&#113;&#32;&#92;&#115;&#101;&#116;&#123;&#49;&#44;&#92;&#108;&#100;&#111;&#116;&#115;&#44;&#50;&#107;&#125;\" title=\"Rendered by QuickLaTeX.com\" height=\"16\" width=\"109\" style=\"vertical-align: -4px;\"\/> of size at most <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;\"\/> we have a rank two letter <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-c6abdfc87f4fc8cbcf579f56c9e2742d_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#111;&#112;&#108;&#117;&#115;&#95;&#88;\" title=\"Rendered by QuickLaTeX.com\" height=\"11\" width=\"22\" style=\"vertical-align: -2px;\"\/>. A tree <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-3374f32a602fe8fdc50593fbb0e5bde1_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#116;\" title=\"Rendered by QuickLaTeX.com\" height=\"10\" width=\"6\" style=\"vertical-align: 0px;\"\/> over this alphabet can be viewed as a term in the algebra of sourced graphs, which generates some sourced graph. The following<\/p>\n<p><strong>Lemma 1.\u00a0<\/strong><em>For every tree decomposition of width at most <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;\"\/> one can compute in linear time a tree over alphabet <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-b7943fd16d47f9342147c0ff236a9417_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#83;&#105;&#103;&#109;&#97;&#95;&#107;\" title=\"Rendered by QuickLaTeX.com\" height=\"14\" width=\"18\" style=\"vertical-align: -3px;\"\/> which generates the same graph (a graph is interpreted as a sourced graph with no sources).<\/em><\/p>\n<p><strong>Proof. <\/strong>A simple bottom-up pass through the tree decomposition, the same as is used in\u00a0the theorem <a href=\"https:\/\/www.mimuw.edu.pl\/~bojan\/20162017-2\/advanced-topics-in-automata-20162017-jezyki-automaty-i-obliczenia-2\/monadic-second-order-logic-and-courcelles-theorem\/tree-width\">here<\/a>. The only additional observation is that, by reusing source names, we can be sure that <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-9e3975d5b6ed1152ed0136f2131c4e3e_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#50;&#107;\" title=\"Rendered by QuickLaTeX.com\" height=\"11\" width=\"16\" style=\"vertical-align: 0px;\"\/> source names are enough. <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<p>Recall that for a given tree automaton, checking if an input tree is accepted can be done in linear time. Therefore, the theorem from the beginning of this page follows from Lemma 1 and Lemma 2 below.<\/p>\n<p><strong>Lemma 2.\u00a0<\/strong><em>Let <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-2f4cc4976a18063268a04e50c161c0e2_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#107;&#32;&#92;&#105;&#110;&#32;&#92;&#78;&#97;&#116;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"39\" style=\"vertical-align: -1px;\"\/> and let <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-8cb1ea867e2888b522709f63bc7b588a_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#118;&#97;&#114;&#112;&#104;&#105;\" title=\"Rendered by QuickLaTeX.com\" height=\"10\" width=\"10\" style=\"vertical-align: -3px;\"\/> be an mso formula over the vocabulary of graphs, i.e. using a binary relation <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-c2d6553a1ce5b71224c383c846c8ab5d_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#69;&#40;&#120;&#44;&#121;&#41;\" title=\"Rendered by QuickLaTeX.com\" height=\"16\" width=\"48\" style=\"vertical-align: -4px;\"\/>. There is a tree 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;\"\/> such that for every tree <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-3374f32a602fe8fdc50593fbb0e5bde1_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#116;\" title=\"Rendered by QuickLaTeX.com\" height=\"10\" width=\"6\" style=\"vertical-align: 0px;\"\/> over the ranked alphabet <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-b7943fd16d47f9342147c0ff236a9417_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#83;&#105;&#103;&#109;&#97;&#95;&#107;\" title=\"Rendered by QuickLaTeX.com\" height=\"14\" width=\"18\" style=\"vertical-align: -3px;\"\/> the following conditions are equivalent:<br \/>\n<\/em><\/p>\n<ol>\n<li><em>the tree <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-3374f32a602fe8fdc50593fbb0e5bde1_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#116;\" title=\"Rendered by QuickLaTeX.com\" height=\"10\" width=\"6\" style=\"vertical-align: 0px;\"\/> is accepted by <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;\"\/>;<\/em><\/li>\n<li><em>the graph generated by <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-3374f32a602fe8fdc50593fbb0e5bde1_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#116;\" title=\"Rendered by QuickLaTeX.com\" height=\"10\" width=\"6\" style=\"vertical-align: 0px;\"\/> satisfies <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-8cb1ea867e2888b522709f63bc7b588a_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#118;&#97;&#114;&#112;&#104;&#105;\" title=\"Rendered by QuickLaTeX.com\" height=\"10\" width=\"10\" style=\"vertical-align: -3px;\"\/>.<\/em><\/li>\n<\/ol>\n<p><strong>Proof.\u00a0<\/strong>Recall that over trees, mso and tree automata have the same expressive power. Therefore it suffices to find a formula of mso <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-937250a763a707d6a2fcdf8ca523b7e3_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#112;&#115;&#105;\" title=\"Rendered by QuickLaTeX.com\" height=\"14\" width=\"10\" style=\"vertical-align: -3px;\"\/> over trees such that <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-937250a763a707d6a2fcdf8ca523b7e3_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#112;&#115;&#105;\" title=\"Rendered by QuickLaTeX.com\" height=\"14\" width=\"10\" style=\"vertical-align: -3px;\"\/> is true in a tree <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-3374f32a602fe8fdc50593fbb0e5bde1_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#116;\" title=\"Rendered by QuickLaTeX.com\" height=\"10\" width=\"6\" style=\"vertical-align: 0px;\"\/> if and only if the graph generated by the tree <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-3374f32a602fe8fdc50593fbb0e5bde1_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#116;\" title=\"Rendered by QuickLaTeX.com\" height=\"10\" width=\"6\" style=\"vertical-align: 0px;\"\/> satisfies <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-8cb1ea867e2888b522709f63bc7b588a_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#118;&#97;&#114;&#112;&#104;&#105;\" title=\"Rendered by QuickLaTeX.com\" height=\"10\" width=\"10\" style=\"vertical-align: -3px;\"\/>.<\/p>\n<p>We assume that for every rank zero letter <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-37335dfa46a03cccd33de9b0e479cf9f_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#97;&#32;&#92;&#105;&#110;&#32;&#92;&#83;&#105;&#103;&#109;&#97;&#95;&#107;\" title=\"Rendered by QuickLaTeX.com\" height=\"14\" width=\"45\" style=\"vertical-align: -3px;\"\/> there is an enumeration of the 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;\"\/> vertices that appear in the sourced graph <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;\"\/> which uses numbers <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-df2c3f7c7b2b298155a804ba4a416ff3_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#115;&#101;&#116;&#123;&#48;&#44;&#49;&#44;&#92;&#108;&#100;&#111;&#116;&#115;&#44;&#107;&#125;\" title=\"Rendered by QuickLaTeX.com\" height=\"16\" width=\"80\" style=\"vertical-align: -4px;\"\/>. Consider a <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-3374f32a602fe8fdc50593fbb0e5bde1_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#116;\" title=\"Rendered by QuickLaTeX.com\" height=\"10\" width=\"6\" style=\"vertical-align: 0px;\"\/> is a tree over <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-b7943fd16d47f9342147c0ff236a9417_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#83;&#105;&#103;&#109;&#97;&#95;&#107;\" title=\"Rendered by QuickLaTeX.com\" height=\"14\" width=\"18\" style=\"vertical-align: -3px;\"\/>. For a\u00a0leaf <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-8ecbc11e5f9047eaecdbfca853b87fd1_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#118;\" title=\"Rendered by QuickLaTeX.com\" height=\"7\" width=\"8\" style=\"vertical-align: 0px;\"\/> of the tree <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-3374f32a602fe8fdc50593fbb0e5bde1_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#116;\" title=\"Rendered by QuickLaTeX.com\" height=\"10\" width=\"6\" style=\"vertical-align: 0px;\"\/> and <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-dab1a975ff9ee95a03d1c6bec567f9cf_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#105;&#32;&#92;&#105;&#110;&#32;&#92;&#115;&#101;&#116;&#123;&#48;&#44;&#49;&#44;&#92;&#108;&#100;&#111;&#116;&#115;&#44;&#107;&#125;\" title=\"Rendered by QuickLaTeX.com\" height=\"16\" width=\"105\" style=\"vertical-align: -4px;\"\/>, define <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-8e2b2bc21dc52b104c63c76991e5a1f3_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#116;&#40;&#118;&#44;&#105;&#41;\" title=\"Rendered by QuickLaTeX.com\" height=\"16\" width=\"37\" style=\"vertical-align: -4px;\"\/> to be the vertex in the graph generated by <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-3374f32a602fe8fdc50593fbb0e5bde1_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#116;\" title=\"Rendered by QuickLaTeX.com\" height=\"10\" width=\"6\" style=\"vertical-align: 0px;\"\/> which corresponds to the <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-94b2245f3ac0472586363dd0fde68eb5_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#105;\" title=\"Rendered by QuickLaTeX.com\" height=\"11\" width=\"5\" style=\"vertical-align: 0px;\"\/>-th vertex in the label of <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-8ecbc11e5f9047eaecdbfca853b87fd1_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#118;\" title=\"Rendered by QuickLaTeX.com\" height=\"7\" width=\"8\" style=\"vertical-align: 0px;\"\/>. The vertex <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-8e2b2bc21dc52b104c63c76991e5a1f3_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#116;&#40;&#118;&#44;&#105;&#41;\" title=\"Rendered by QuickLaTeX.com\" height=\"16\" width=\"37\" style=\"vertical-align: -4px;\"\/> might be undefined if <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-94b2245f3ac0472586363dd0fde68eb5_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#105;\" title=\"Rendered by QuickLaTeX.com\" height=\"11\" width=\"5\" style=\"vertical-align: 0px;\"\/> is not part of the enumeration in the label of <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-8ecbc11e5f9047eaecdbfca853b87fd1_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#118;\" title=\"Rendered by QuickLaTeX.com\" height=\"7\" width=\"8\" style=\"vertical-align: 0px;\"\/>. Furthermore it might be the case that <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-abf72e4e3eb91a8b53010fc8704a77b7_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#116;&#40;&#118;&#44;&#105;&#41;&#61;&#116;&#40;&#119;&#44;&#106;&#41;\" title=\"Rendered by QuickLaTeX.com\" height=\"16\" width=\"102\" style=\"vertical-align: -4px;\"\/> for some <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-30ac70b8fe3150bd23345ce1bb0fbbbd_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#40;&#118;&#44;&#105;&#41;&#32;&#92;&#110;&#101;&#113;&#32;&#40;&#119;&#44;&#106;&#41;\" title=\"Rendered by QuickLaTeX.com\" height=\"16\" width=\"89\" style=\"vertical-align: -4px;\"\/>, this is because of the fuse operations. This definition is illustrated below (the green numbers are the enumerations of the vertices in the leaves).<\/p>\n<p><a href=\"https:\/\/www.mimuw.edu.pl\/~bojan\/upload\/mso-courcelle-09.svg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone  wp-image-1230\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/upload\/mso-courcelle-09.svg\" alt=\"\" width=\"425\" height=\"508\" \/><\/a><\/p>\n<p>Furthermore, the equality <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-abf72e4e3eb91a8b53010fc8704a77b7_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#116;&#40;&#118;&#44;&#105;&#41;&#61;&#116;&#40;&#119;&#44;&#106;&#41;\" title=\"Rendered by QuickLaTeX.com\" height=\"16\" width=\"102\" style=\"vertical-align: -4px;\"\/> can be tested in mso on the tree <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-3374f32a602fe8fdc50593fbb0e5bde1_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#116;\" title=\"Rendered by QuickLaTeX.com\" height=\"10\" width=\"6\" style=\"vertical-align: 0px;\"\/> in the following sense.<\/p>\n<p><strong>Claim.\u00a0<\/strong><em>For every <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-e879ab7cd7b8bd326e373b8fe1fcb0eb_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#105;&#44;&#106;&#32;&#92;&#105;&#110;&#32;&#92;&#115;&#101;&#116;&#123;&#48;&#44;&#49;&#44;&#92;&#108;&#100;&#111;&#116;&#115;&#44;&#107;&#125;\" title=\"Rendered by QuickLaTeX.com\" height=\"16\" width=\"119\" style=\"vertical-align: -4px;\"\/> there is an mso formula which selects a pair of nodes <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-57f8ef6a402e3998a31130254d972361_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#40;&#118;&#44;&#119;&#41;\" title=\"Rendered by QuickLaTeX.com\" height=\"16\" width=\"37\" style=\"vertical-align: -4px;\"\/> in the tree <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-3374f32a602fe8fdc50593fbb0e5bde1_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#116;\" title=\"Rendered by QuickLaTeX.com\" height=\"10\" width=\"6\" style=\"vertical-align: 0px;\"\/> if and only if <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-abf72e4e3eb91a8b53010fc8704a77b7_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#116;&#40;&#118;&#44;&#105;&#41;&#61;&#116;&#40;&#119;&#44;&#106;&#41;\" title=\"Rendered by QuickLaTeX.com\" height=\"16\" width=\"102\" style=\"vertical-align: -4px;\"\/><\/em><\/p>\n<p><strong>Proof of the claim.\u00a0<\/strong>The formula\u00a0says that there is some source\u00a0name <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;\"\/> and a node <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-3ccd8f286191ea53927701d21a8c5ff6_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#117;\" title=\"Rendered by QuickLaTeX.com\" height=\"7\" width=\"9\" style=\"vertical-align: 0px;\"\/> such that:<\/p>\n<ul>\n<li><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-3ccd8f286191ea53927701d21a8c5ff6_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#117;\" title=\"Rendered by QuickLaTeX.com\" height=\"7\" width=\"9\" style=\"vertical-align: 0px;\"\/> is an ancestor of both <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-8ecbc11e5f9047eaecdbfca853b87fd1_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#118;\" title=\"Rendered by QuickLaTeX.com\" height=\"7\" width=\"8\" style=\"vertical-align: 0px;\"\/> and <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;\"\/><\/li>\n<li>on the path from <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-8ecbc11e5f9047eaecdbfca853b87fd1_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#118;\" title=\"Rendered by QuickLaTeX.com\" height=\"7\" width=\"8\" style=\"vertical-align: 0px;\"\/> to <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-3ccd8f286191ea53927701d21a8c5ff6_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#117;\" title=\"Rendered by QuickLaTeX.com\" height=\"7\" width=\"9\" style=\"vertical-align: 0px;\"\/>, the vertex corresponding to <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-8e2b2bc21dc52b104c63c76991e5a1f3_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#116;&#40;&#118;&#44;&#105;&#41;\" title=\"Rendered by QuickLaTeX.com\" height=\"16\" width=\"37\" style=\"vertical-align: -4px;\"\/> is present all the time as an source with name <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;\"\/>;<\/li>\n<li>on the path from <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 <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-3ccd8f286191ea53927701d21a8c5ff6_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#117;\" title=\"Rendered by QuickLaTeX.com\" height=\"7\" width=\"9\" style=\"vertical-align: 0px;\"\/>, the vertex corresponding to <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-6f3cba36e9d19e0fdc3534cd2a2827c5_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#116;&#40;&#119;&#44;&#106;&#41;\" title=\"Rendered by QuickLaTeX.com\" height=\"16\" width=\"43\" style=\"vertical-align: -4px;\"\/> is present all the time as an source with name <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;\"\/>.<\/li>\n<\/ul>\n<p>This completes the proof of the claim. <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<p>In a similar way, we can write an mso formula which selects a\u00a0pair of nodes <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-57f8ef6a402e3998a31130254d972361_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#40;&#118;&#44;&#119;&#41;\" title=\"Rendered by QuickLaTeX.com\" height=\"16\" width=\"37\" style=\"vertical-align: -4px;\"\/> in the tree <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-3374f32a602fe8fdc50593fbb0e5bde1_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#116;\" title=\"Rendered by QuickLaTeX.com\" height=\"10\" width=\"6\" style=\"vertical-align: 0px;\"\/> if and only if the underlying graph has an edge from <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-8e2b2bc21dc52b104c63c76991e5a1f3_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#116;&#40;&#118;&#44;&#105;&#41;\" title=\"Rendered by QuickLaTeX.com\" height=\"16\" width=\"37\" style=\"vertical-align: -4px;\"\/> to <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-6f3cba36e9d19e0fdc3534cd2a2827c5_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#116;&#40;&#119;&#44;&#106;&#41;\" title=\"Rendered by QuickLaTeX.com\" height=\"16\" width=\"43\" style=\"vertical-align: -4px;\"\/>. Once we have these formulas, we can simulate mso on the graph generated by <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-3374f32a602fe8fdc50593fbb0e5bde1_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#116;\" title=\"Rendered by QuickLaTeX.com\" height=\"10\" width=\"6\" style=\"vertical-align: 0px;\"\/> using mso on the tree <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-3374f32a602fe8fdc50593fbb0e5bde1_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#116;\" title=\"Rendered by QuickLaTeX.com\" height=\"10\" width=\"6\" style=\"vertical-align: 0px;\"\/> itself. The idea is that instead of quantifying over a set <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-d327fd7a45e47dba85898a5f3dcc560d_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#87;\" title=\"Rendered by QuickLaTeX.com\" height=\"11\" width=\"17\" style=\"vertical-align: 0px;\"\/> of vertices in the generated graph, we can quantify over sets\u00a0<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-5f8254dc145e00c8549e56d53f0056b7_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#87;&#95;&#48;&#44;&#92;&#108;&#100;&#111;&#116;&#115;&#44;&#87;&#95;&#107;\" title=\"Rendered by QuickLaTeX.com\" height=\"14\" width=\"78\" style=\"vertical-align: -3px;\"\/> of nodes in <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-3374f32a602fe8fdc50593fbb0e5bde1_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#116;\" title=\"Rendered by QuickLaTeX.com\" height=\"10\" width=\"6\" style=\"vertical-align: 0px;\"\/>, with <\/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-ba2e78503ba48da6c96ce742d361cc3c_l3.png\" height=\"16\" width=\"158\" class=\"ql-img-displayed-equation quicklatex-auto-format\" alt=\"&#92;&#91;&#87;&#95;&#105;&#32;&#61;&#32;&#92;&#115;&#101;&#116;&#123;&#119;&#32;&#58;&#32;&#116;&#40;&#119;&#44;&#105;&#41;&#32;&#92;&#105;&#110;&#32;&#87;&#125;&#92;&#93;\" title=\"Rendered by QuickLaTeX.com\"\/><\/p>\n<p> Using the formulas from the claim and analogue for edges, we can interpret the tuple <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-content\/ql-cache\/quicklatex.com-5f8254dc145e00c8549e56d53f0056b7_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#87;&#95;&#48;&#44;&#92;&#108;&#100;&#111;&#116;&#115;&#44;&#87;&#95;&#107;\" title=\"Rendered by QuickLaTeX.com\" height=\"14\" width=\"78\" style=\"vertical-align: -3px;\"\/> as a set of vertices in the graph, and test the edge relationship between these vertices. <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<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The goal of this page is to prove the following theorem. Theorem. Let \u00a0and let be an mso formula over the vocabulary of graphs, i.e. using a binary relation . \u00a0There is a linear time algorithm which inputs a tree decomposition of width and decides if the underlying graph satisfies . Recall sourced graphs, the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":1140,"menu_order":5,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"inline_featured_image":false,"footnotes":""},"class_list":["post-1211","page","type-page","status-publish","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-json\/wp\/v2\/pages\/1211"}],"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=1211"}],"version-history":[{"count":22,"href":"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-json\/wp\/v2\/pages\/1211\/revisions"}],"predecessor-version":[{"id":1241,"href":"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-json\/wp\/v2\/pages\/1211\/revisions\/1241"}],"up":[{"embeddable":true,"href":"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-json\/wp\/v2\/pages\/1140"}],"wp:attachment":[{"href":"https:\/\/www.mimuw.edu.pl\/~bojan\/wp-json\/wp\/v2\/media?parent=1211"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}