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.
A partially ordered set can be partitioned into antichains, where 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 when task must finish before task . 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 , then even without an edge . Scheduling follows reachability, not adjacency—the edit shadow from Chapter 10 again.
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 workers, total work supplies another lower bound . The completion time cannot beat
Scheduling heuristics decide how close a constrained system gets. The partial order still tells them which choices are legal.
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
- Layer the divisibility order on {1,2,3,4,6,12} into antichains.
- Exhibit a longest chain that proves your layering optimal.
- Give a resource constraint that is not a precedence relation.
- 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
- Mirsky. “A Dual of Dilworth's Decomposition Theorem.” American Mathematical Monthly, 1971. — the height-equals-antichain-cover theorem
- Dilworth. “A Decomposition Theorem for Partially Ordered Sets.” Annals of Mathematics, 1950. — the width-equals-chain-cover theorem
- Lehman, Leighton, Meyer. “Mathematics for Computer Science.” MIT OpenCourseWare, 2024. — partial orders and scheduling foundations