# Partial order under contraction

# 1 Real Life Problem

I want to make a program that allow users to maintain some information that has some inherent partial order structure. Each information can be represented by a node, and there are edges going between nodes. One of the operations is grouping multiple nodes and mark them as equivalent. Equivalent nodes can be shrink into one super node, and only expand it when the user want to inspect the inside. However, we still want a partial order in the global view. It would be nice to characterize when it is possible.

# 2 Formal Formulation

$(P,≤)$ be a partial order. Define $U(X)={p∣x≤p,x∈X,p∈P}\X$, $D(X)={p∣p≤x,x∈X,p∈P}\X$.

Let $Z⊂P$ and $Q=P\Z∪{q}$ where $q∈P$. We define an contraction operation $C(P,Z)=(Q,≼)$, such that

$a≼b⟺a≤bor(a∈D(Z)∪{q}andb∈U(Z)∪{q})$

If we interpret $(P,≤)$ as a directed graph, then this operation is contracting the vertices in $Z$ into one vertex $q$, and then take the transitive closure.

There is a cute characterization of when $(Q,≼)$ is also a partial order.

$C(P,Z)=(Q,≼)$ is a partial order if and only if $D(Z)∩U(Z)=∅$. In particular, the map $f(x)={xq x∈P\Zx∈Z $ is order-preserving.

If $x≤y$, then $f(x)≼f(y)$ by definition. We just have to prove $(Q,≼)$ is a partial order.

If $D(Z)∩U(Z)=∅$, let $x∈D(Z)∩U(Z)$. There is $z,z_{′}∈Z$ such that $z≤x≤z_{′}$. $x≼q$ and $q≼x$ but $x=q$. $(Q,≼)$ is not a partial order.

If $D(Z)∩U(Z)=∅$,

For all $x∈Q$, $x≼x$.

If $x≼y$ and $y≼z$ then $x≼z$. This can be shown by a few case work from the definition.

$x≼y$, $y≼x$, then $x=y$.

$x≤y$, then $y≤x$. Assume not, then $y∈D(Z)∪{q}$ and $x∈U(Z)∪{q}$. $x∈D(z)$ because $x≤y$. This implies $x∈D(Z)∩U(Z)$, a contradiction. Thus $x≤y$ implies $x=y$.

If $x∈D(Z)∪{q}$ and $y∈U(Z)∪{q}$, and we also have $x∈U(Z)∪{q}$ and $y∈U(Z)∪{q}$. This shows $x=q=y$.

By symmetry, it take care of the remaining cases.

Again, if we interpret this in a graph theoretical sense, a contraction of a set of vertices $X$ doesn’t introduce directed cycles if and only if the set of vertices reachable from $X$ and can reach $X$ are a subset of $X$.