You're viewing the readable version of this site. The interactive extras (search, diagrams, read-aloud) need JavaScript and a current browser. Enable JavaScript; if it is already enabled, update your browser.

Learn · The Concrete Discrete Math of Real Systems

growing

What Cannot Be Compared Can Run Together

In a dependency order, an antichain is a batch that may run together, and the longest chain exactly measures how many sequential rounds are unavoidable.

·

discrete-math, partial-orders, antichains, scheduling, parallelism, learn

A partially ordered set can be partitioned into rr antichains, where rr is the maximum number of elements in a chain.

Leon Mirsky, “A Dual of Dilworth's Decomposition Theorem,” 1971

The preceding chapter produced a partial order of concepts. This chapter turns partiality into a schedule. You will distinguish chains from antichains, prove the lower bound from a critical path, construct an optimal layering by longest-path rank, and state the difference between mathematical concurrency and physical speedup.

Shoes after socks, shirt whenever

Getting dressed has dependencies: socks before shoes; trousers before belt. Shirt and socks have no required order. Define x<yx<y when task xx must finish before task yy. A chain is a set in which every pair compares; it is forced sequential work. An antichain is a set in which no pair compares; it is eligible to run together.

Antichain — a subset of a partial order whose distinct elements are pairwise incomparable. In a dependency order, no member is reachable from another.

Do not confuse “no direct edge” with incomparable. If abca\to b\to c, then a<ca<c even without an edge aca\to c. Scheduling follows reachability, not adjacency—the edit shadow from Chapter 10 again.

Prediction — follow the transitive dependency.

The chain is an unavoidable bill

If the longest chain has hh tasks, every schedule needs at least hh rounds: two comparable tasks cannot share a round. This is the critical path lower bound from the dependency chapter.

The striking part is the converse. Assign each task a level

level(x)=1+maxy<xlevel(y), level(x)=1+\max_{y<x} level(y),

with minimal tasks at level 1. Tasks on the same level cannot compare: if x<zx<z, then level(z)>level(x)level(z)>level(x). Each level is therefore an antichain. The maximum level is exactly the longest chain length hh, so these levels partition the work into hh parallel rounds.

The longest forced chain is both a lower bound and an achievable number of antichain rounds.

This is Mirsky's theorem. It gives a certificate on both sides: the chain proves no schedule can use fewer rounds; the antichain layering proves one can attain that count with unlimited workers and unit-time tasks.

Note

The person behind the theorem. Leon Mirsky (1918–1983) was a Russian-born British mathematician who worked in number theory, linear algebra, and combinatorics. His 1971 two-page note gave the antichain-partition theorem dual to Robert Dilworth's 1950 chain-partition theorem. “Dual” here swaps chains and antichains; it does not erase the distinct publications and attributions.

Unlimited workers are a theorem assumption

Real tasks have durations, machines have capacities, and two mathematically independent jobs may contend for memory bandwidth or a database lock. The theorem answers a clean structural question: the fewest dependency layers for unit tasks with unlimited processors.

With pp workers, total work WW supplies another lower bound W/pW/p. The completion time cannot beat

max(critical path,W/p). \max(critical\ path, W/p).

Scheduling heuristics decide how close a constrained system gets. The partial order still tells them which choices are legal.

Discrimination — legality is not performance.

Width answers a different scheduling question

The size of the largest antichain is the width of the order: the greatest instantaneous structural parallelism. Dilworth's theorem says that width equals the minimum number of chains needed to cover all tasks. Mirsky says height equals the minimum number of antichains.

Keep the pair straight:

obstruction optimal cover
largest antichain (width) fewest chains
longest chain (height) fewest antichains

Where the schedule runs out

  • An antichain is defined by transitive reachability, not missing direct edges.
  • The optimal-layer theorem assumes unit durations and unlimited processors.
  • Side effects and shared resources can impose constraints absent from the declared DAG; that is a modeling defect, not a theorem failure.
  • Minimizing rounds does not necessarily minimize cost, energy, or tail latency.

Lessons

  • Chains are forced sequence; antichains are dependency-free batches.
  • Height is an unavoidable round count and Mirsky layering achieves it.
  • Width measures maximum structural concurrency and equals the minimum chain cover size.
  • Parallel legality and realized speedup are separate claims.

Practice

  1. Layer the divisibility order on {1,2,3,4,6,12} into antichains.
  2. Exhibit a longest chain that proves your layering optimal.
  3. Give a resource constraint that is not a precedence relation.
  4. One week later, reconstruct the height/antichain and width/chain cross-pairing.

The next question is what machines are made of

Parallel layers decompose a schedule spatially. Finite machines admit a deeper decomposition by behavior. Some components merely forget distinctions; others perform reversible permutations. The next chapter shows that these two species are enough to build every finite machine.

References

  1. Mirsky. “A Dual of Dilworth's Decomposition Theorem.” American Mathematical Monthly, 1971. — the height-equals-antichain-cover theorem
  2. Dilworth. “A Decomposition Theorem for Partially Ordered Sets.” Annals of Mathematics, 1950. — the width-equals-chain-cover theorem
  3. Lehman, Leighton, Meyer. “Mathematics for Computer Science.” MIT OpenCourseWare, 2024. — partial orders and scheduling foundations