Retractions onto series-parallel posets

advertisement
Retractions onto series-parallel posets
Vı́ctor Dalmau
Department of Technology, University Pompeu Fabra,
Passeig de la Circumval.lacio 8, Barcelona 08003, Spain
email: victor.dalmau@upf.edu
Andrei Krokhin∗
Department of Computer Science, University of Durham,
Durham, DH1 3LE, UK
email: andrei.krokhin@durham.ac.uk
Benoit Larose
Department of Mathematics and Statistics, Concordia University,
1455 de Maisonneuve West, Montréal, Québec, Canada, H3G 1M8
email: larose@mathstat.concordia.ca
Abstract
The poset retraction problem for a poset P is whether a given poset Q containing P
as a subposet admits a retraction onto P, that is, whether there is a homomorphism from
Q onto P which fixes every element of P. We study this problem for finite series-parallel
posets P. We present equivalent combinatorial, algebraic, and topological charaterisations
of posets for which the problem is tractable, and, for such a poset P, we describe posets
admitting a retraction onto P.
1
Introduction
Throughout the paper, we consider only finite posets. For posets P, Q, etc., we shall denote
their universes by P , Q, etc., and their partial orders by ≤P , ≤Q , etc., omitting the superscript
if the order is clear from the context. A mapping h from poset Q to poset P is called monotone,
or a homomorphism if, for any x ≤ y in Q, we have h(x) ≤ h(y) in P. In this case we write
h : Q → P. If, in addition, P is a subposet of Q and h(x) = x for every x ∈ P then h is
called a retraction from Q onto P.
The poset retraction problem for a poset P, denoted PoRet(P), is whether a given poset
Q containing P as a subposet admits a retraction onto P. The notion of retraction plays an
important role in combinatorial theory (see, e.g., [3, 6, 7, 15]). The poset retraction problem
is also of interest in theoretical computer science, as the following examples show. It can be
considered a natural order-theory analogue of the much-studied graph H-coloring problem [5],
or a special case of the constraint satisfaction problem (CSP), which is the problem of deciding
whether there exists a homomorphism from a given relational structure to a fixed relational
structure [4]. The CSP attracts much attention in artificial intelligence, combinatorics, and
∗
corresponding author
1
complexity theory, and it is known that a CSP for any fixed structure can be encoded as a
poset retraction problem [4]. The poset retraction problem has also been studied in connection
with type reconstruction [1, 11, 16].
In this paper, we consider the poset retraction problem in the case of series-parallel posets.
This is an interesting class of posets from both the mathematical [17, 21] and computer science [12, 13, 14] point of view. Recall that a linear sum of two (disjoint) posets P1 and P2 is a
poset P1 +P2 with universe P1 ∪P2 and partial order ≤P1 ∪ ≤P2 ∪{(p1 , p2 ) | p1 ∈ P1 , p2 ∈ P2 }.
Definition 1 A poset is called series-parallel if it can be constructed from singletons by using
disjoint union and linear sum.
Let k denote a k-antichain (that is, disjoint union of k singletons). A 4-crown is a poset
isomorphic to 2 + 2. The N -poset can be described as 2 + 2 with one comparability missing
(its Hasse diagram looks like the letter “N”). Series-parallel posets can be characterized as
N -free posets, that is, posets not containing the N -poset as an induced subposet [20].
2
Definitions and Results
In this section we give all necessary definitions and state our results.
Definition 2 A poset P is said to admit an operation f : P n → P if, for any a, b ∈ P n such
that a(i) ≤ b(i) for i = 1, . . . , n, we have f (a) ≤ f (b). In this case we also say that f is a
polymorphism of P.
Definition 3 An n-ary operation f on P is called idempotent if f (x, . . . , x) = x for all
x ∈ P.
It is said to be Taylor if, in addition, it satisfies n(≥ 2) identities of the form
f (xi1 , . . . , xin ) = f (yi1 , . . . , yin ), i = 1, . . . , n
where xij , yij ∈ {x, y} for all i, j and xii 6= yii for i = 1, . . . , n.
An n-ary idempotent operation f is said to be totally symmetric idempotent (or TSI) if
f (x1 , . . . , xn ) = f (y1 , . . . , yn ),
for all sets of variables such that {x1 , . . . , xn } = {y1 , . . . , yn }.
Posets admitting Taylor and TSI operations were studied in [9, 10, 19]. Under the name
‘set functions’, TSI operations were applied in the study of constraint satisfaction problems [2].
Definition 4 A subset X of a poset P is called an idempotent subalgebra of P if there is a
triple (Q, q0 , g) where Q is a poset, q0 ∈ Q, and g is a partial map from Q to P with domain
Y with the following property:
X = {h(q0 ) | h : Q → P and h|Y = g}.
2
Equivalently, X is definable by a first-order formula φ with one free variable such that φ
contains only conjunction, existential quantification, the order predicate (of P), and constants
(interpreted as elements of P).
The name “idempotent subalgebra” comes from another equivalent definition which goes
as follows. A subset of X of a poset P is called an idempotent subalgebra of P if it is preserved
by all idempotent polymorphisms of P, i.e., f (x1 , . . . , xn ) ∈ X for all n-ary idempotent
polymorphisms of P and x1 , . . . , xn ∈ X, n ≥ 1.
Of course, an idempotent subalgebra of P can be considered as a poset, with ordering
induced by P.
For basic definitions in algebraic topology, we refer to [18]. Recall that to each finite poset
is associated naturally a simplicial complex: the simplices are the totally ordered subsets of
the poset (see [10] for details.) If P is a connected poset, we shall denote the fundamental
group of the associated complex by π(P); we shall say that P is simply connected if this group
is trivial. It is well known that π(2 + 2) is isomorphic to Z (see, e.g., [10]), so the 4-crown is
not simply connected. It is also well-known (and easy to show) that if a poset P is a retract
of a poset Q then the group π(P) is a retract of π(Q).
Denote by X the class of all series-parallel posets P with the following property: if
{a, a0 , b, b0 } is a 4-crown in P, a and a0 being the bottom elements, then at least one of
the following conditions holds:
1. there is e ∈ P such that a, a0 , e, b, b0 form a subposet in P isomorphic to 2 + 1 + 2;
2. inf P (a, a0 ) exists;
3. supP (b, b0 ) exists.
Recall that inf P and supP denote the greatest common lower bound and the least common
upper bound in P, respectively. Usually we write simply inf and sup, as P is clear from the
context, and we also call them meet and join, respectively.
Fix a poset P ∈ X . If P is a subposet of Q and A, B are two antichains in P, let QA,B
denote the set of all elements q ∈ Q such that both q ≤ a for every a ∈ A and q ≥ b for every
b ∈ B. One of A, B may be empty, and in this case the corresponding part of the condition
disappears.
In order to describe posets Q that admit a retraction onto P, we need to introduce the
following two conditions on Q:
(R1) For every pair (A, B) of antichains in P, QA,B is empty whenever PA,B is empty.
(R2) For every non-empty and non-connected H ⊆ P that is of the form H = PA0 ,B 0 , and
for every p1 , p2 ∈ H that belong to different connected components of H, there is no path (of
comparable elements) in Q that connects p1 and p2 and such that every element in this path
belongs to some QA,B with PA,B ⊆ H.
Theorem 1 Let P ∈ X be connected. Then a poset Q containing P has a retraction onto P
if and only if Q satisfies conditions (R1) and (R2).
Theorem 2 Let P be a connected series-parallel poset. Then the following conditions are
equivalent:
3
1. P ∈ X ;
2. P does not retract onto any of 1 + 2 + 2 + 2, 2 + 2 + 2 + 1, 1 + 2 + 2 + 2 + 2 + 1,
2 + 2, and 2 + 2 + 2.
3. P has a Taylor polymorphism;
4. P has a TSI polymorphism of every arity k ≥ 2;
5. every connected idempotent subalgebra of P is simply connected;
6. for every connected idempotent subalgebra Q of P, π(Q) does not retract onto Z.
Theorem 3 Let P be a series-parallel poset. If every connected component of P satisfies any
of the conditions of Theorem 2 then PoRet(P) is tractable. Otherwise it is NP-complete.
3
Proof of Theorem 1
For a poset P, denote by w(P) and w(P) the biggest and the smallest, respectively, elements
in P that are comparable with each element in P.
Lemma 1 Let P ∈ X be connected. Then w(P) and w(P) exist.
Proof. Since P is series-parallel, it follows that P is the sum of two posets. In particular,
every maximal element in P is above any minimal one. If P has the greatest element then it
is comparable with all other elements, so w(P) and w(P) exist.
Suppose P has at least two maximal elements and let V denote the set of all maximal
common lower bounds of the set of all maximal elements of P. If V = {p} then p = w(P).
Indeed, if there is a ∈ P incomparable with p then there exists a maximal element of m
such that a 6≤ m. Take any maximal element m0 such that a < m0 . Then {a, p, m, m0 } is
an N -poset, a contradiction. Suppose |V | ≥ 2. If the elements of V have a unique greatest
common lower bound, that is inf V , then one can show that it is w(P). Assume inf V does not
exist. If V1 , V2 ⊆ V , V1 ∩ V2 6= ∅, and inf V1 and inf V2 would both exist then they would be
comparable, because P is N -free. Moreover, we would have inf(inf V1 , inf V2 ) = inf(V1 ∪ V2 ).
Since inf V does not exist, one can find vi , vj ∈ V such that inf(vi , vj ) does not exist. Consider
W = {x ∈ P | x ≥ vi , vj }. Note that this set contains all maximal elements of P. The poset W
cannot be connected, since otherwise any of its minimal elements would be below all maximal
elements of P which is impossible by the choice of V . Now pick two minimal elements wk , wl
from different connected components of W . It is easy to see that {vi , vj , wk , wl } form a
4-crown that contradicts the assumption that P ∈ X .
Since there exists an element in P comparable with all other elements, w(P ) exists as
well.
Lemma 2 Let P ∈ X and A, B ⊆ P be two antichains (one of which may be empty). Then
every connected component of the subposet PA,B belongs to X .
4
Proof. Follows immediately from definitions, as the offending 4-crown in PA,B would be such
in P.
Proof of Theorem 1. It is easy to see that any retraction from Q onto P must map
QA,B to PA,B . If Q does not satisfy (R1) then Q has an element that cannot be mapped
anywhere by a retraction, due to the rule above. If Q does not satisfy (R2) then, in Q, there
is a path of comparable elements that are forced to be mapped to some disconnected H and
that connect two elements from different connected components of H. Hence, if Q does not
satisfy either (R1) or (R2) then there is no retraction from Q onto P.
Suppose now that Q satisfies both (R1) and (R2). We show that there is a retraction
r : Q → P. In order to define r we need some constructions and notation.
In the following we write ≤ to denote ≤Q , this will cause no confusion. However sup and
inf will always be calculated in P. Take q ∈ Q, and let Lq be the set of maximal elements of
{a ∈ P | a ≤ q}, and Uq the set of minimal elements of {b ∈ P | b ≥ q}. Let Hq = PLq ,Uq .
Note that Hq is non-empty.
It is not hard to show that if Hq is not connected then there exists no set of the form
PA,B such that Hq is properly contained in PA,B and the elements from different connected
components of Hq are still disconnected in PA,B . Since Q satisfies (R2), there is at most
one connected component Kq of Hq such that q is connected to an element of Kq in the way
described in (R2). For every disconnected Hq , let us fix an arbitrary element z(Hq ) such that
z(Hq ) = w(K) for some connected component K of Hq . Note that z(Hq ) actually depends on
the set Hq , not on q. If Uq and Lq are both non-empty, denote by Xq the set of of all x ∈ P
such that x is minimal with the property that
1. PLq ,Uq ∪{x} is non-empty, and
2. Uq ∪ {x} is an antichain, and
3. sup(x, u) does not exist for some u ∈ Uq .
Denote PLq ,Uq ∪Xq by Hq0 . Throughout the proof we use the following property which can
be easily derived from definitions: for every x ∈ Xq , either PLq ,Uq ∪{x} = PLq ,Uq or, for all
u ∈ Uq , sup(x, u) does not exist. We need the following three claims in order to define the
retraction.
Claim 1. If Hq 6= ∅ then Hq0 6= ∅.
We show that every minimal element of Hq belongs to Hq0 . Suppose, for contradiction, that
there is a minimal element a ∈ Hq and some x ∈ Xq such that a 6≤ x. Then {a, b, x, u} where
b is some minimal element of Hq such that b ≤ x, and u is an arbitrary element in Uq , form
an N -poset.
Claim 2. If Hq is not connected then Hq = Hq0 .
Both Uq and Lq contain more than one element. Take an arbitrary x ∈ Xq . If x is above
one maximal element of PLq ,Uq then it is above all elements of PLq ,Uq (or else one can easily
find an N -poset), and then PLq ,Uq = PLq ,Uq ∪{x} . Otherwise, by the choice of x, there is a in
PLq ,Uq ∪{x} . Take a maximal element b in PLq ,Uq such that a 6≤ b, and any element u ∈ Uq .
One can check that {a, b, x, u} is an N -poset.
Claim 3. If Hq is connected then so is Hq0 .
It is shown above that all minimal elements of PLq ,Uq belong to PLq ,Uq ∪Xq . If there is only
5
one minimal element then it ensures connectivity. Otherwise, for every pair a, b of distinct
minimal elements, fix their minimal common upper bound (in PLq ,Uq ) va,b . If every va,b is
below all x ∈ Xq then we get connectivity. Assume, on the contrary, that there exist a, b
and x such that va,b 6≤ x. Then {a, b, va,b , x} is a 4-crown, and there is no inf(a, b) (since
a, b are minimal in PLq ,Uq ). If there exists u = sup(x, va,b ) then take any maximal element
w in PLq ,Uq such that sup(w, x) does not exist and show that {x, va,b , u, w} is an N -poset.
Indeed, w and u are incomparable. Obviously, u 6≤ w, and we have w 6≤ u, since otherwise
u = sup(w, x). Thus, u = sup(x, va,b ) does not exist, and we obtain a contradiction with
P ∈ X . Claim 3 is proved.
Now we are ready to define the mapping r. Let

w(P),




w(Hq ),




 w(Hq ),
r(q) = w(Hq0 ),


w(Kq ),





w(K
q ),


z(Hq ),
if
if
if
if
if
if
if
Lq = Uq = ∅,
Lq 6= ∅, Uq = ∅, and Hq is connected,
Lq = ∅, Uq 6= ∅, and Hq is connected,
Lq 6= ∅, Uq 6= ∅, and Hq is connected,
Lq 6= ∅, Hq is disconnected, and Kq is defined,
Lq = ∅, Hq is disconnected, and Kq is defined,
Hq is disconnected and Kq is not defined.
Using Lemmas 1 and 2 it can be verified that r is well-defined, and that it is identity on P .
It remains to show that r is a homomorphism. Take q < q 0 in Q and prove that r(q) ≤ r(q 0 ).
We distinguish seven cases depending on Lq , Uq , Lq0 , and Uq0 . Throughout the proof we
use the following facts without explicit reference: 1) QA,B is non-empty whenever PA,B is
non-empty (since Q satisfies (R1)) and 2) if p1 , p2 ∈ P and there is a path from p1 to p2 in
QA,B then there is a path from p1 to p2 in PA,B (this follows from the fact that Q satisfies
(R2)). Moreover, in the second case p1 and p2 either are comparable or have a common upper
or lower bound, since P is N -free.
Case 1. Lq = Uq = ∅ or Lq0 = Uq0 = ∅.
Suppose that Lq = Uq = ∅, that is r(q) = w(P). It follows that Uq0 = ∅. Assume that Lq0 6= ∅,
since otherwise trivially r(q) = r(q 0 ). If PLq0 ,∅ is not connected then it is easy to see that
r(q) is below every element in PLq0 ,∅ . If PLq0 ,∅ is connected then r(q) ≤ r(q 0 ) because r(q) is
comparable with every element in P and r(q) > r(q 0 ) would contradict the choice of r(q 0 ).
Case 2. Lq = Uq0 = ∅.
We have r(q) ≤ w(P) ≤ w(P) ≤ r(q 0 ) (similarly to Case 1).
Case 3. Lq 6= ∅, Uq = ∅.
It follows that Lq0 6= ∅ and Uq0 = ∅.
Subcase 3.1. PLq0 ,∅ is not connected.
We have PLq0 ,∅ ⊆ PLq ,∅ .
Indeed, since q 0 ∈ QLq ∪Lq0 ,∅ , we know that PLq ∪Lq0 ,∅ is non-empty. Then there exists a
maximal element u ∈ PLq0 ,∅ such that u ∈ PLq ,∅ . Then every maximal element v from any
connected component K of PLq0 ,∅ such that u 6∈ K must belong to PLq ,∅ , or otherwise one
can easily find an N -poset there. Now if there is x ∈ PLq0 ,∅ such that a 6≤ x for some a ∈ Lq
then take any maximal element v from a connected component of PLq0 ,∅ not containing x,
and take any element b ∈ Lq0 . It is easy to see that {a, b, x, v} is an N -poset.
If every element x ∈ PLq0 ,∅ is connected with exactly the same elements in PLq ,∅ as it is
in PLq0 ,∅ then PLq ,∅ = PLq0 ,∅ . Indeed, otherwise one can choose a < u such that a 6∈ PLq0 ,∅
6
but u ∈ PLq0 ,∅ . Take any element v from a connected component of PLq0 ,∅ not containing u
and any element b ∈ Lq0 such that b 6≤ a. Then {a, b, u, v} form an N -poset, a contradiction.
So, in this case r(q) = r(q 0 ) because q and q 0 are connected in QLq0 ,∅ = QLq ,∅ .
The argument from the previous paragraph also shows that if PLq ,∅ strictly contains PLq0 ,∅
then there exist a and u as described above and, moreover, every such a must lie below each
element from PLq0 ,∅ (or else we can find an N -poset). So we now assume that PLq0 ,∅ is
contained in one connected component of PLq ,∅ . Now it is easy that if PLq ,∅ is connected
then r(q) ≤ r(q 0 ). If PLq ,∅ has at least two components then every element of Lq0 is above
every element of Lq , or else there is an N -poset (two incomparable elements from Lq0 and Lq ,
and two maximal elements u, v such that u ∈ PLq0 ,∅ and v is from any other component of
PLq ,∅ ). Therefore, Lq0 , PLq0 ,∅ , r(q) and r(q 0 ) are all in the same connected component K of
PLq ,∅ . Since r(q) is then below all elements of PLq0 ,∅ , we have r(q) ≤ r(q 0 ).
Subcase 3.2. PLq0 ,∅ is connected.
Every maximal element of PLq0 ,∅ is a maximal element of PLq ,∅ or otherwise one can easily
find an N -poset.
If PLq ,∅ is connected then r(q) ≤ r(q 0 ) because of the above inclusion. If PLq ,∅ has at
least two components then the argument is the same as in the previous subcase.
Case 4. Uq0 6= ∅, Lq0 = ∅.
Dual to Case 3.
From now on, we assume that Uq 6= ∅ and Lq0 6= ∅, and at least one of Lq , Uq0 is non-empty.
Obviously, if u ≤ l for some u ∈ Uq and l ∈ Lq0 then r(q) ≤ r(q 0 ). Assume that l1 6< u1 ,
l1 < u2 for some l1 ∈ Lq0 and u1 , u2 ∈ Uq . Then l1 6< r(q). If r(q) is incomparable with l1
then {r(q), l1 , u1 , u2 } is an N -poset, a contradiction. So r(q) ≤ l1 ≤ r(q 0 ). The argument is
similar if there are l1 , l2 ∈ Lq0 and u ∈ Uq such that l1 < u and l2 6< u.
In what follows we will always assume that either l < u for all l ∈ Lq0 , u ∈ Uq , or all such
l and u are incomparable.
Case 5. Lq = ∅ and Uq0 6= ∅.
Subcase 5.1 Hq is disconnected, and l < u for all l ∈ Lq0 , u ∈ Uq .
Suppose there are l10 , l20 ∈ Lq0 belonging to two different connected components of Hq . If
r(q 0 ) ≥ u for some element in u ∈ Uq then r(q) ≤ r(q 0 ). If not then, since Hq is disconnected,
there is u ∈ Uq such that r(q 0 ) and u are incomparable. Let l10 not belong to the connected
component of Hq containing r(q). Then r(q) ≤ r(q 0 ), since otherwise {r(q), l10 , u, r(q 0 )} is an
N -poset.
So let Lq0 be contained in one connected component of Hq . Then, for every a ∈ Hq0 , either
a ∈ Hq , or a > b for every b ∈ Hq , since otherwise {u, a, l, x} is an N -poset, where l ∈ Lq0 is
such that l < a, u ∈ Uq is such that u and a are incomparable, and x is a suitable maximal
element of Hq .
Assume first that Hq0 0 ⊆ Hq . Then, for any l ∈ Lq0 , there is a path in Q, from q to l, such
that every element on this path belongs to some QA,B with PA,B ⊆ Hq . Therefore, both
r(q) and r(q 0 ) belong to the same connected component Kq of Hq , and r(q) = w(Kq ). Then
r(q) and r(q 0 ) are comparable. Moreover, by the definition of Uq , r(q) ∈ Hq0 . If r(q) ∈ Hq0 0
then r(q) ≤ r(q 0 ), as r(q) and r(q 0 ) are both comparable with all elements of Hq0 0 . Assume
that r(q) > r(q 0 ). Then r(q) 6< x for some x ∈ Xq0 . Let A = {a | a < r(q) and r(q 0 ) 6≤ a}.
This set is non-empty, since otherwise r(q) could not be above r(q 0 ). Let A0 be the set of all
maximal elements of A. If some a ∈ A0 satisfies a 6≤ x for some x ∈ Xq then {a, r(q 0 ), r(q), x}
7
is an N -poset, a contradiction. If there exists inf(r(q 0 ), a) for all a ∈ A0 then there exists
c = inf(A0 ∪ {r(q 0 )}), and c would contradict the choice of r(q) because it is easy to show
that c is comparable with all elements in Hq . So inf(r(q 0 ), a) does not exist for some a ∈ A0 .
Then {a, r(q 0 ), r(q), x} is a crown contradicting P ∈ X because the existence of sup(r(q), x)
would imply the existence of sup(x, u) for every u ∈ Uq which, in turn, would contradict the
definition of x ∈ Xq . So if Hq0 ⊆ Hq then r(q) ≤ r(q 0 ).
Assume now that there is a ∈ Hq0 0 such that a > b for every b ∈ Hq . (Note that then Hq0 is
connected or every a ∈ Hq0 is above every b ∈ Hq .) Consider minimal such elements. If there
is only one such element a then r(q) ≤ a ≤ r(q 0 ). If there are more than two such elements
a1 , . . . , an then every pair (ai , aj ) must have a supremum (or else {ai , aj , y, z}, where y, z are
from different connected components of Hq , forms a crown that contradicts P ∈ X ). Then
there exists c = sup({a1 , . . . , an }). It is easy to check that c is comparable with all elements
in Hq0 0 . Hence r(q) ≤ c ≤ r(q 0 ).
Subcase 5.2 Hq is disconnected, and l and u are incomparable for all l ∈ Lq0 , u ∈ Uq .
If there are l ∈ Lq0 and a ∈ Hq such that l > a then l > b for every b from any connected
component of Hq not containing a, or otherwise {u, l, a, b} is an N -poset for any u ∈ Uq . So
in this case r(q) < l ≤ r(q 0 ). We may assume for the rest of this subcase that a 6≤ l for all
l ∈ Lq0 and a ∈ Hq .
One can easily show that u ≤ u0 for every u ∈ Uq and u0 ∈ Uq0 ∪ Xq0 (or else one can find
an N -poset).
For every l ∈ Lq0 there exists bl ∈ Hq such that l < bl and u < bl for some u ∈ Uq , since
there is a path from l to u in Q∅,Uq0 . Then bl > u for each u ∈ Uq , or otherwise one can easily
find an N -poset.
Take arbitrary u1 , u2 ∈ Uq . Since P ∈ X , there exists u = sup(u1 , u2 ). We know that
u ≤ u0 for every u ∈ Uq and u0 ∈ Uq0 ∪ Xq0 . If u > l for some l ∈ Lq0 then one can take
bl = u, and, in fact u = sup Uq . We show that u is comparable with all elements of Hq0 0 .
Indeed, if u is incomparable with some a ∈ Hq0 0 then, for each ui ∈ Uq either {u, a, ui , l} is an
N -poset or a > ui . In the latter case, a must be comparable with u = sup Uq . Now we have
r(q) < u ≤ r(q 0 ) regardless whether u ∈ Hq0 0 or not.
We may assume now that l 6≤ u for each l ∈ Lq0 .
Assume that Hq0 0 is disconnected. If there is x ∈ Hq0 such that u 6≤ x then there exists
c ∈ Hq0 such that c > x and c > u, and then one can always find a maximal element y ∈ Hq0
such that {x, u, c, y} is an N -poset. If u ≤ x for all x ∈ Hq0 then we have r(q) ≤ r(q 0 ).
Assume that Hq0 0 is connected. We know that r(q 0 ) 6≤ u. Assume that r(q 0 ) and u are
incomparable and derive a contradiction. Since r(q 0 ) and u are connected by a path in Q∅,Uq0 ,
they have a common bound in P∅,Uq0 . It is easy to show that if they have a common lower
bound then one can prove as in the first paragraph of this subcase that r(q) ≤ r(q 0 ). So
assume that r(q 0 ) and u have no common lower bound, and there is b ∈ Hq0 such that u < b
and r(q 0 ) < b. Let B be the set of all minimal b with this property. It is not hard to verify
that there cannot be only one such minimal element. Any b ∈ B must belong to Hq0 0 . Indeed,
if b 6≤ x for some x ∈ Xq0 then {b, x, u, r(q 0 )} form a crown contradicting the assumption
that P ∈ X . If sup(bi , bj ) exists for any pair bi , bj ∈ B then there exists sup B. It is easy to
check this element belongs to Hq0 0 , and it is comparable with every element of this set. This
is a contradiction with the choice of r(q 0 ). So sup(bi , bj ) does not exist for some bi , bj ∈ B.
Then {u, r(q 0 ), bi , bj } is a crown contradicting the assumption that P ∈ X . Thus we have
r(q) ≤ u ≤ r(q 0 ).
8
Subcase 5.3 Hq is connected, and l < u for all l ∈ Lq0 , u ∈ Uq .
In this case r(q) = w(Hq ). We assume that r(q) ∈ Hq0 , since otherwise r(q) ≤ l ≤ r(q 0 ) for
some l ∈ Lq0 .
Assume that Hq0 0 is connected, and r(q) is incomparable with some x ∈ Xq0 , that is,
r(q) 6∈ Hq0 0 . Note that sup(x, r(q)) does not exist. If r(q) and r(q 0 ) are incomparable then, for
any u0 ∈ Uq0 , {r(q), r(q 0 ), u0 , x} is an N -poset. Assume, for contradiction that r(q) > r(q 0 ).
Let A be the set of all a minimal with the following property: a < r(q) and a 6> r(q 0 ).
If inf(a, r(q 0 )) exists for each a ∈ A then there exists sup(A ∪ {r(q 0 )}, and this element is
comparable with all elements in Hq , a contradiction with the choice of r(q). So inf(a(r(q 0 ))
does not exist for some a ∈ A. Then {a, r(q 0 ), r(q), x} is a crown contradicting P ∈ X .
Consequently, if Hq0 0 is connected then r(q) ∈ Hq0 0 . Then, as r(q 0 ) = w(Hq0 0 ), r(q) and r(q 0 ) are
comparable. Assume, for contradiction, that r(q) > r(q 0 ). Let B be the set of all elements
b minimal with the following property: b < r(q) and b 6> r(q 0 ). Simlarly, let C be the set
of all elements c ∈ Hq0 0 minimal with the following property: c > r(q 0 ) and c 6< r(q). By
definitions of r(q) and r(q 0 ), both B and C are non-empty. Arguing as above, one can show
that there are b ∈ B and c ∈ C such that neither inf(b, r(q 0 )) nor sup(c, r(q)) exist. Then
{b, r(q 0 ), c, r(q)} is a crown contradicting that P ∈ X .
Assume now that Hq0 is disconnected. Note that Lq0 has at least two elements. Let b be
a minimal element from the connected component of Hq0 containing r(q) and a a minimal
element from any other connected component. In Hq , consider a maximal (with respect to
inclusion) antichain D such that Lq0 ⊆ D. It is easy to show that, for every d ∈ D, both
d < a and d < b holds, or else P 6∈ X . The standard argument shows that there must be
d1 , d2 ∈ D such that inf(d1 , d2 ) does not exist. By the choice of a and b, sup(a, b) does not
exist either. Then {a, b, d1 , d2 } is a crown contradicting that P ∈ X .
Subcase 5.4 Hq is connected, and l and u are incomparable for all l ∈ Lq0 , u ∈ Uq .
Assume that Hq0 is disconnected. If r(q) ≤ l for some l ∈ Lq0 then r(q) ≤ r(q 0 ). Assume now
that r(q) is incomparable with each l ∈ Lq0 . Since, in Q∅,Uq0 , there is a path from r(q) to any
such l, we see that r(q) and l have a common bound in P∅,Uq0 . If, for some l ∈ Lq0 , there
is b such that b > l and b > r(q) then using disconnectedness of Hq0 it is easy to prove that
r(q) < a for every a ∈ Hq0 , in particular, r(q) < r(q 0 ). Assume now that, for each l ∈ Lq0 , r(q)
and l have only lower bounds in common. It follows, in particular, that sup(l, r(q)) exist for
no l ∈ Lq0 . Fix an arbitrary l ∈ Lq0 and consider the set A consisting of all maximal common
lower bounds of r(q) and l. Extend A to a maximal antichain D in Hq . Arguing as in the
previous subcase, one can derive a contradiction with P ∈ X .
Assume now that Hq0 0 is connected. We know that r(q 0 ) 6≤ r(q). Assume that these
elements are incomparable and derive a contradiction. If r(q) 6< x for some x ∈ Xq0 then
{r(q), r(q 0 ), x, u0 } is an N -poset for every u0 ∈ Uq0 . So we have r(q) ∈ P∅,Uq0 ∪Xq0 . Arguing
as above, one can prove that if inf(r(q), r(q 0 )) exists then it must be r(q). Similarly, if
sup(r(q), r(q 0 )) exists then it must be r(q 0 ). So by our assumption neither inf(r(q), r(q 0 )) nor
sup(r(q), r(q 0 )) exists. We know that r(q) and r(q 0 ) have a common upper or lower bound
in P∅,Uq0 , since they are connected by a path in Q∅,Uq0 . Assume that none of the common
bounds belongs to P∅,Uq0 ∪Xq0 . Then all their common bounds are upper. Take a minimal
upper bound c ∈ P∅,Uq0 . There is x ∈ Xq0 such that c and x are incomparable. Then, by
construction of Xq0 , sup(c, x) does not exist, and {r(q), r(q 0 ), x, c} form a crown contradicting
P ∈ X . So r(q) and r(q 0 ) do have common bounds in P∅,Uq0 ∪Xq0 . Now depending on whether
they have lower or upper bounds, one can find, using the “antichain” method above, a crown
9
with the top or the bottom elements r(q) and r(q 0 ) such that this crown contradicts the
assumption P ∈ X .
Case 6. Lq 6= ∅ and Uq0 = ∅.
Subcase 6.1 Hq0 is disconnected, and l < u for all l ∈ Lq0 , u ∈ Uq .
The argument dual to the one from the first two paragraphs of Subcase 5.1 shows that it is
enough to consider the case when Uq is contained in one connected component of Hq0 , and,
for every a ∈ Hq , either a ∈ Hq0 or a < b for every b ∈ Hq0 .
Assume first that Hq0 ⊆ Hq0 . Then, for any u ∈ Uq , ψHq0 (u, q 0 ) is true, and therefore r(q)
and r(q 0 ) are in the same connected component Kq0 of Hq0 , and r(q 0 ) = w(Kq0 ). Then r(q)
and r(q 0 ) are comparable. If r(q 0 ) 6≤ u for each u ∈ Uq then, since r(q 0 ) = w(Kq0 ), we have
r(q 0 ) > u for some u ∈ Uq , and r(q) < r(q 0 ). So let r(q 0 ) ∈ Hq . Then Hq is connected and
r(q) = w(Hq0 ). Assume, for contradiction, that r(q) > r(q 0 ). Let A be a maximal (with respect
to inclusion) antichain in Kq0 such that Uq ⊆ A, and let B = {b ∈ A | r(q) ≤ b}. If A = B
then it is easy to show that r(q) is comparable with each element in Kq0 , a contradiction with
the choice of r(q 0 ). Assume that A 6= B. If, for every x ∈ A \ B and every u ∈ Uq , there exists
sup(x, u) then there exists c = sup(Uq ∪ (A \ B)). If b ≤ c for every b ∈ B then it is easy to
show that c is comparable with each element in Kq0 , a contradiction with the choice of r(q 0 ).
If b 6≤ c for some b ∈ B then, for any x ∈ A \ B, {x, r(q), b, c} is an N -poset. Hence there are
x ∈ A \ B and u ∈ Uq such that sup(x, u) does not exist. Then x ∈ Xq . Since r(q) 6≤ x, we
obtain a contradiction with the choice of r(q). Thus if Hq0 ⊆ Hq0 then r(q) ≤ r(q 0 ).
Assume now that there is a ∈ Hq0 such that b < a for every every b ∈ Hq0 . If all elements in
0
Hq are such then, obviously, r(q) < r(q 0 ). If not then Hq0 is connected and then r(q) = w(Hq0 ).
Note that there exist l ∈ Lq and l0 ∈ Lq0 such that l < l0 . Take any element x from a
connected component of Hq0 not containing Uq . The element l ensures that x ∈ Xq . Thus we
have r(q) ≤ x, and r(q) must be below all elements in Hq0 , in particular, r(q) < r(q 0 ).
Subcase 6.2 Hq0 is disconnected, and l and u are incomparable for all l ∈ Lq0 , u ∈ Uq .
Take arbitrary l and u. Since l and u are connected by a path in QLq ,∅ , they have a common
bound in PLq ,∅ . Assume that some l and u have a common upper bound b ∈ PΘLq ,∅ . Let
l0 6< b for some l0 ∈ Lq0 . Then either b < a for every a ∈ Hq0 (and then r(q) ≤ r(q 0 )) or
there is a from a suitable connected component of Hq0 such that {l, l0 , a, b} is an N -poset, a
contradiction. Assume now that l0 < b for all l0 ∈ Lq0 . Again, either u < a for every a ∈ Hq0
(and then r(q) ≤ r(q 0 )) or one can find an N -poset in P, a contradiction.
Assume for the rest of this subcase that no l ∈ Lq0 and u ∈ Uq have a common upper
bound. Fix l ∈ Lq0 . For any u ∈ Uq , there is a common lower bound du ∈ PLq ,∅ of l and
u. Choose du to be minimal in PLq ,∅ . If du 6< u1 for some u1 ∈ Uq then {du1 , du , u1 , l} is an
N -poset. Hence du ∈ Hq , and, moreover, PLq ,Hq ∪{l} is non-empty. If Hq is connected then,
by the definition of Xq , there is x ∈ Xq such that x ≤ l, and then r(q) ≤ x ≤ l ≤ r(q 0 ). If Hq
is disconnected then a < l for every a ∈ Hq , and then r(q) < l < r(q 0 ), or else one can choose
a ∈ Hq so that {a, du , u, l} is an N -poset.
Subcase 6.3 Hq0 is connected, and l < u for all l ∈ Lq0 , u ∈ Uq .
In this case r(q 0 ) = w(Hq0 ). We assume that r(q 0 ) ∈ Hq , since otherwise r(q) ≤ u ≤ r(q 0 ) for
some u ∈ Uq .
Let Hq be connected. If r(q) and r(q 0 ) are incomparable then there is x ∈ Xq such
that r(q 0 ) 6< x, and {r(q), r(q 0 ), x, u} is an N -poset for any u ∈ Uq . So r(q) and r(q 0 ) are
comparable. Assume, for contradiction, that r(q) > r(q 0 ). The argument similar to the one
from the second paragraph of the previous subcase shows that this leads to a contradiction
10
with the choice of r(q 0 )
Let Hq be disconnected. It is easy to see that r(q) and r(q 0 ) belong to the same connected
component of Hq . Then the proof is similar to (the dual of) the last paragraph of subcase
5.3.
Subcase 6.4 Hq0 is connected, and l and u are incomparable for all l ∈ Lq0 , u ∈ Uq .
We have r(q 0 ) = w(Hq0 ), and we may assume that r(q 0 ) is in comparable with u for each
u ∈ Uq , since otherwise we immediately have r(q) < r(q 0 ).
Take l ∈ Lq0 and u ∈ Uq . Since u and l are connected by a path in QLq ,∅ , they have a
common bound in PLq ,∅ .
Assume they have a common upper bound b. Then either a < l for every a ∈ Hq , and then
r(q) < r(q 0 ), or u1 < b for every u1 ∈ Uq . Similarly, either u < c for every c ∈ Hq0 , and then
r(q) < r(q 0 ), or l1 < b for every l1 ∈ Lq0 . Assume that b is above each element in Uq ∪Lq0 . Then
b is comparable with r(q 0 ). If b ≤ r(q 0 ) then, of course, r(q) < r(q 0 ). So let r(q 0 ) < b for every
such b. Let B be the set of all minimal elements of {b | r(q 0 ) < b and u < b for all u ∈ Uq }.
It is easy to check that every a such that r(q 0 ) ≤ a is comparable with some element of B. If
there exist sup(b1 , b2 ) for all b1 , b2 in B then there exists sup B, and this element contradicts
the choice of r(q 0 ). So sup(b1 , b2 ) does not exist for some b1 , b2 in B. Since P ∈ X , there
is inf(r(q 0 ), u) for every u ∈ Uq . As in subcase 6.2, we can choose du ≤ inf(r(q 0 ), u) so that
du ∈ Hq and then derive that r(q) < r(q 0 ).
Case 7. Lq 6= ∅ and Uq0 6= ∅.
Subcase 7.1 The inequality l < u holds for all l ∈ Lq0 , u ∈ Uq .
Assume, for contradiction, that r(q) and r(q 0 ) are incomparable. Then, since P is N -free, for
every u ∈ Uq and l0 ∈ Lq0 , we have r(q) > l0 or r(q 0 ) < u. For the same reason, if r(q) > l0 for
some l0 ∈ Lq0 then r(q) > l0 for each l0 ∈ Lq0 , and if r(q 0 ) < u for some u ∈ Uq then r(q 0 ) < u
for each u ∈ Uq . Hence, r(q) ∈ Hq0 or r(q 0 ) ∈ Hq , or both. It is easy to verify that r(q) ∈ Hq0
implies r(q) ∈ Hq0 0 and r(q 0 ) ∈ Hq implies r(q 0 ) ∈ Hq0 .
If u ≤ r(q 0 ) then, obviously, r(q) ≤ r(q 0 ). Assume that r(q 0 ) is incomparable with some
u ∈ Uq . Then r(q 0 ) is incomparable with each u ∈ Uq and we have r(q) ∈ Hq0 0 . Since P is
N -free, it follows that u < u0 for each u ∈ Uq , u0 ∈ Uq0 , that is Uq ⊆ Hq0 , and, moreover,
Uq ⊆ Hq0 0 . Since, by definition, r(q 0 ) is comparable with all elements from its connected
component of Hq0 0 , we conclude that Hq0 is disconnected, and the elements r(q) and r(q 0 )
belong to different connected components of Hq0 0 . Moreover, sup(u, r(q 0 )) does not exist for
any u ∈ Uq . There exists a ∈ Hq such that a 6∈ Hq0 , since otherwise, by definition, r(q) and
r(q 0 ) would belong to the same connected component of Hq0 . Then l0 6≤ a for some l0 ∈ Lq0 . If
a ≤ l0 then a ∈ PLq ,Uq ∪{r(q0 )} and r(q) ≤ x ≤ r(q 0 ) for some x ∈ Xq , a contradiction with our
assumption that r(q) and r(q 0 ) are incomparable. If a and l0 incomparable then it is easy to
show that l0 ∈ PLq ,Uq ∪{r(q0 )} , so r(q) ≤ r(q 0 ), a contradiction again. We conclude that r(q 0 )
cannot be incomparable with each u ∈ Uq , and so r(q 0 ) ∈ Hq0 . Similarly, one can show that
r(q) ∈ Hq0 0 .
Then both Hq and Hq0 are disconnected, and r(q) and r(q 0 ) belong to different connected
components of both Hq and Hq0 , since otherwise r(q) and r(q 0 ) would be comparable. It
follows that PΘL 0 ,Uq is non-empty and disconnected, and, of course, PLq0 ,Uq ⊆ Hq ∩ Hq0 . As
q
we have already noticed when defining Hq , such an inclusion implies PΘL 0 ,Uq = Hq = Hq0 .
q
But then, by definition, r(q) and r(q 0 ) would belong to the same connected component of this
set, and so would be comparable. This is a contradiction with our assumption that r(q) and
r(q 0 ) are incomparable.
11
Assume now, for contradiction, that r(q) > r(q 0 ). In this case, we again have r(q 0 ) ∈ Hq
and r(q) ∈ Hq0 . If is easy to show that if x0 ∈ Xq0 then either x0 ∈ Xq or u < x0 for some
u ∈ Uq . In both cases r(q) must be below x0 , and so r(q) ∈ Hq0 0 . We have r(q 0 ) ∈ Hq0 , as
r(q 0 ) < r(q). Now choose A and B as in the second paragraph of subcase 6.1, and repeat the
argument from that paragraph to derive a contradiction.
Subcase 7.2 Hq0 is disconnected, and l and u are incomparable for all l ∈ Lq0 , u ∈ Uq .
Note that l < l0 for every l ∈ Lq , l0 ∈ Lq0 , and u < u0 for every u ∈ Uq , u0 ∈ Uq0 because the
poset P is N -free.
Take arbitrary l and u. Since l and u are connected by a path in QLq ,Hq0 , they have a
common bound in PΘLq ,H 0 . The rest of the proof for this subcase is identical to subcase 6.2.
q
Subcase 7.3 Hq0 is disconnected, and l and u are incomparable for all l ∈ Lq0 , u ∈ Uq .
Similar to subcase 6.4.
The theorem is proved.
4
Proof of Theorem 2
(4) ⇒ (3) : trivial.
(3) ⇒ (5) : this follows immediately from Theorem 3.2 of [10].
(5) ⇒ (6) : trivial.
(6) ⇒ (2) : suppose that (2) does not hold. This means that P retracts onto a poset R
which has a connected idempotent subalgebra which is not simply connected: in fact,
this subalgebra is a 4-crown in every case. Indeed, for R = 2 + 2, it is R itself;
the 4 top elements of 2 + 2 + 2 do the trick, and similarly for 1 + 2 + 2 + 2. For
2 + 2 + 2 + 1, the bottom 4 elements will do, and finally the 4 middle elements do the
job for 1 + 2 + 2 + 2 + 2 + 1. In each case, it is easy to check, by using Definition 4,
that the selected 4-crown is indeed an idempotent subalgebra. Thus P retracts onto
a poset R which has an idempotent subalgebra isomorphic to a 4-crown. By results
in [8] this implies that the 4-crown is a retract of an idempotent subalgebra of P, call it
Q. It is easy to check that the connected components of an idempotent subalgebra are
themselves idempotent subalgebras, so we may assume that Q is connected. But then
the fundamental group of Q retracts onto the fundamental group of the 4-crown, which
is Z, a contradiction.
(2) ⇒ (1) : we prove the contrapositive by induction on the size of P. If P = P1 ∪P2 then P1
or P2 contains the offending crown, so we are done by induction. Otherwise we have that
P = P1 + P2 . Suppose first that P1 contains an offending crown. Then, by induction
hypothesis, P1 retracts onto one of the 5 posets in the list. Since any combination of
retractions of P1 and P2 is a retraction of P, it follows that it is enough to prove the
result assuming that P1 actually is one of the 5 posets in the list. If P1 is neither
2 + 2 nor 1 + 2 + 2 + 2 then P retracts onto 2 + 2 + 2 + 1 or 1 + 2 + 2 + 2 + 2 + 1
by retracting P2 to a point, so we are done. Now suppose that P1 = 1 + 2 + 2 + 2.
Then the offending crown must consist of the top four elements, which means that
P2 must have at least 2 minimal elements; if these have an upper bound then P2
12
retracts onto 2 + 1, so P retracts onto 1 + 2 + 2 + 2 + 2 + 1; otherwise (i.e., if no pair
of minimal elements have an upper bound), P2 retracts onto 2 and so P retracts onto
1 + 2 + 2 + 2 + 2 , which retracts onto 1 + 2 + 2 + 2. If P2 contains an offending crown
the proof is dual. So we may now suppose that P1 has 2 maximal elements with no
meet and P2 has 2 minimal elements with no join.
Claim. Let Q be a series-parallel poset of height at least 2, and let x, y be maximal
elements in Q that have a lower bound but no meet. Then Q retracts onto 1 + 2 + 2.
Proof of Claim. We use induction on the size of Q. Clearly the result holds for small
posets, and if Q = Q1 ∪ Q2 the result follows immediately by induction. So suppose
that Q = Q1 + Q2 . Then {x, y} ⊆ Q2 . Since x and y have no infimum in Q they have
no infimum in Q2 . If {x, y} has a lower bound in Q2 then by induction it retracts onto
1 + 2 + 2 and so does Q, else Q2 retracts onto 2 because Q2 is N -free. Since x and y
have no meet in Q it follows that Q1 has at least 2 maximal elements, and these have
a lower bound. Hence Q1 retracts onto 1 + 2 and so Q retracts onto 1 + 2 + 2.
By the claim and its dual, P1 retracts onto 2 or 1 + 2 + 2, and P2 retracts onto 2 or
2 + 2 + 1. Combining the 4 cases yields the desired result.
(1) ⇒ (4) : we must show that every poset P ∈ X has TSI operations of every arity k ≥ 2.
Let K = K(P) denote the following poset, as defined in [10] (see also [9, 19]): a subset
C of a poset P is (weak) convex if for all c, c0 ∈ C, if c ≤ x ≤ c0 then x ∈ C. K is the
poset of all non-empty convex sets in P ordered as follows: X ≤ Y if and only if for
every x ∈ X there exists y ∈ Y such that x ≤ y, and for every v ∈ Y there exists u ∈ X
such that u ≤ v. The embedding of P into K sends p to {p}. By Proposition 1 in [19]
and the last part of the proof of Theorem 3 in [19] (see also remark (1) on page 95 of
[4]), P admits TSI operations of all arities if and only if it admits one of arity |P|, if
and only if P is a retract of K. Hence, it suffices to prove that P is a retract of the
poset K. Here we invoke Theorem 1.
(R1) Let (A, B) be a pair of antichains in P such that KA,B 6= ∅; we must show that
PA,B 6= ∅. But it is immediate by the definition of K and the embedding of P in
K that if X ∈ KA,B then X ⊆ PA,B .
(R2) Let H = PA0 ,B 0 be non-empty, let p1 , p2 ∈ H be such that there exists a path
from {p1 } to {p2 } in K such that every element in this path lies in some KA,B
with PA,B ⊆ H. We must show that p1 and p2 are connected via a path in H
itself. More precisely, consider a path
{p1 } = X0 , X1 , . . . , Xn = {p2 }
in K such that for each i = 1, . . . , n − 1, there are some antichains Ai , Bi in P such
that Xi ∈ KAi ,Bi and PAi ,Bi ⊆ H. As in the proof of property (R1) above, we
have Xi ⊆ PAi ,Bi ⊆ H for all i. By definition of comparability in K, we may find
a sequence of elements x1 ∈ X1 , x2 ∈ X2 , . . . such that p1 , x1 , x2 , . . . , xn−1 , p2 is a
path in H from p1 to p2 .
13
5
Proof of Theorem 3
For any poset P0 , let Ext(P0 ) denote the following problem: given a poset Q and a partial
mapping f from Q to P0 , does f extend to a homomorphism from Q to P0 . We will use the
following result in our NP-completeness proof. This result is more or less folklore, but, for
completeness, we present it with a proof.
Proposition 1 For any finite poset P0 , the problems PoRet(P0 ) and Ext(P0 ) are polynomial
time equivalent.
Proof. Obviously, PoRet(P0 ) is a subproblem of Ext(P0 ), with f being the identity mapping
defined on P0 . We now show that Ext(P0 ) reduces to PoRet(P0 ) in polynomial time. Let
(Q, f ) be an instance of Ext(P0 ). We may without loss of generality assume that Q ∩ P 0 = ∅.
Let Q0 be a poset that is a disjoint union of Q and P0 , and f 0 a partial mapping from Q0 to P0
that coincides with f on Q and is identity on P0 . Obviously, the instances (Q, f ) and (Q0 , f 0 )
are equivalent. Let %0 be the transitive closure of the following relation % on Q0 : (x, y) ∈ %
if and only if f 0 (x) = f 0 (y) or x ≤ y in Q0 . It is easy to see that %0 can be computed from
(Q, f ) in polynomial time. Moreover, if (p1 , p2 ) ∈ %0 for some p1 , p2 ∈ P 0 such that p1 6≤ p2 in
P0 then f does not extend to a homomorphism. Assume that this condition is not satisfied.
Then all elements of P 0 belong to different classes of the equivalence relation ² = %0 ∩ (%0 )−1 .
Now let Q00 be a complete set of representatives of ²-classes such that P 0 ⊆ Q00 , and let v
be the partial order on on Q00 induced by %0 . Then the poset Q00 = (Q00 , v) is an instance of
PoRet(P0 ). It is straightforward to check that Q00 retracts onto P0 if and only f extends to a
homomorphism. Since Q00 can computed from (Q, f ) in polynomial time, the result follows.
Proof of Theorem 3. It is easy to see that if P is not connected then Q retracts onto
P if and only if different connected components of P are not connected in Q and, for every
connected component of P, the connected component of Q containing it retracts onto it.
Since these conditions can be checked in polynomial time, we may from now on assume that
P is connected.
We begin with the NP-completeness part. Suppose that P 6∈ X . Theorem 2 implies that
P has no Taylor polymorphism. Corollary 10 and Theorem 4 of [9] imply that that if P
has no Taylor polymorphism then Ext(P) is NP-complete. By Proposition 1, PoRet(P) is
NP-complete.
Assume now that P satisfies the conditions of Theorem 2. In particular, P has TSI
polymorphisms of every arity k ≥ 2. Then Proposition 1 above and Proposition 9 [9], imply
that PoRet(P) is polynomial-time equivalent to a certain constraint satisfaction problem
(see [9]) whose tractability follows from [2] (or [4]).
6
Conclusion
We have studied the poset retraction problem for series-parallel posets. We have obtained a
full complexity classification for such problems and have characterized in several ways those
posets for which the problem is tractable. It is an interesting research problem to find out
14
whether some of the conditions of Theorem 2 (in particular, conditions (3) and (6)) determine
tractable poset retraction problems for general posets.
Acknowledgment. Part of this research was done while the second author was visiting
Concordia University, Montreal. Financial help of NSERC Canada is gratefully acknowledged.
References
[1] M. Benke. Some complexity bounds for subtype inequalities. Theoretical Computer
Science, 212:3–27, 1999.
[2] V. Dalmau and J. Pearson. Set functions and width 1 problems. In Proceedings 5th
International Conference on Constraint Programming, CP’99, volume 1713 of Lecture
Notes in Computer Science, pages 159–173. Springer-Verlag, 1999.
[3] D. Duffus and I. Rival. A structure theory for ordered sets. Discrete Mathematics,
35:53–118, 1981.
[4] T. Feder and M.Y. Vardi. The computational structure of monotone monadic SNP and
constraint satisfaction: A study through Datalog and group theory. SIAM Journal on
Computing, 28:57–104, 1998.
[5] P. Hell and J. Nešetřil. On the complexity of H-coloring. Journal of Combinatorial
Theory, Ser.B, 48:92–110, 1990.
[6] P. Hell and I. Rival. Absolute retracts and varieties of reflexive graphs. Canadian Journal
of Mathematics, 39:544–567, 1987.
[7] M. Jawhari, D. Misane, and M. Pouzet. Retracts: graphs and ordered sets from metric
point of view. Contemporary Mathematics, 57:175–226, 1986.
[8] G. Kun and Cs. Szabó. Order varieties and monotone retractions of finite posets. Order,
18:79–88, 2001.
[9] B. Larose and L. Zádori. The complexity of the extendibility problem for finite posets.
SIAM Journal on Discrete Mathematics, 17(1):114–121, 2003.
[10] B. Larose and L. Zádori. Finite posets and topological spaces in locally finite varieties.
Algebra Universalis, 52(2-3):119–136, 2005.
[11] P. Lincoln and J. Mitchell. Algorithmic aspects of type interference with subtypes. In
Proc. 19th ACM Symp. on Principles of Programming Languages, POPL’92, pages 293–
304, 1992.
[12] K. Lodaya and P. Weil. Series-parallel posets: algebra, automata and languages. In
Proceedings 15th Symposium on Theoretical Aspects of Computer Science, STACS’98,
pages 555–565, 1998.
[13] R.H. Möhring. Computationally tractable classes of ordered sets. In Algorithms and
Order (Ottawa, 1987), pages 105–193. Kluwer, Dordrecht, 1989.
15
[14] R.H. Möhring and M.W. Schäffter. Scheduling series-parallel orders subject to 0/1-communication delays. Parallel Computing, 25:23–40, 1999.
[15] P. Nevermann and I. Rival. Holes in ordered sets. Graphs and Combinatorics, 11:339–350,
1985.
[16] V. Pratt and J. Tiuryn. Satisfiabilty of inequalities in a poset. Fundamenta Informaticae,
28:165–182, 1996.
[17] I. Rival. Stories about order and the letter N (en). Contemporary Mathematics, 57:263–
285, 1986.
[18] E. Spanier. Algebraic Topology. McGraw-Hill, 1966.
[19] Cs. Szabó and L. Zádori. Idempotent totally symmetric operations on finite posets.
Order, 18:39–47, 2001.
[20] J. Valdes, R.E. Tarjan, and E.L. Lawler. The recognition of series-parallel digraphs.
SIAM Journal on Computing, 11:298–313, 1982.
[21] L. Zádori. Series parallel posets with nonfinitely generated clones. Order, 10:305–316,
1993.
16
Download