Write for the th uniform layer of the Boolean cube. For , , its lower shadow is . The Local LYM inequality states
To prove it, count pairs with , and . Each contributes pairs; each member of the lower shadow contributes at most . Thus , which is exactly the displayed Local LYM inequality. The corresponding upper shadow inequality follows either by taking complements or by counting upward inclusion pairs.
For an antichain , put . The LYM inequality is
For the first proof, set and recursively . Every member of is a subset of an original member of of size at least . Consequently and are disjoint: otherwise one original member would properly contain another, contradicting the antichain condition. The Local LYM inequality now gives
Iterating down to bounds the desired sum by , proving the LYM inequality.
For the second proof, a permutation determines a maximal chain in a Boolean lattice through the successive initial subsets . A member of size lies on exactly of these maximal chains in a Boolean lattice. An antichain meets each such chain in a partially ordered set at most once. Counting its incidences with the maximal chains in a Boolean lattice therefore yields . Division by is the LYM inequality again.
The Sperner theorem says that an antichain has at most members. Indeed for every , so
The middle uniform layer of the Boolean cube attains the bound. For equality in Sperner theorem, equality throughout forces every member to lie in a layer of maximum size. If , this forces .
If , only ranks and are possible. Let , , and be the upper shadow. The antichain condition gives . The Local LYM inequality for the two equally sized middle layers gives , while forces and .
Consider the inclusion bipartite graph between these two middle layers. It is a -regular graph. Since , all edges incident to must come from ; there are no edges from its complement on the lower side into . This bipartite graph is a connected graph: any two -subsets can be joined by single-element exchanges, and each exchange passes through their common -superset; every upper vertex has a lower neighbour. For it is just one edge. Hence either or is the whole lower layer. We have proved the complete classification:
The two possibilities coincide for even ; for the unique maximum antichain is .
Finally enumerate the members of the separating set system as and encode each point by . Separation of the ordered pair means . Applying the hypothesis also to shows that the sets are distinct and pairwise incomparable. They form an antichain in , so the Sperner theorem immediately gives