The Erdős-Ko-Rado theorem asserts that, for , every intersecting family satisfies
The bound is attained by the set family of all -subsets containing one prescribed point. Here lexicographic order means that when the smallest element of their symmetric difference belongs to .
The first members in lexicographic order are exactly those containing . An initial segment longer than contains all of them and also the first member avoiding , namely . There is an -subset containing and disjoint from : choose its other elements from , which has elements. Consequently any longer lexicographic initial segment fails to be an intersecting family. Thus preservation of the intersection property upon replacing a set family by the equally large lexicographic initial segment proves the displayed bound.
Here is a direct UV-compression proof of that preservation statement. For disjoint nonempty sets with and , an eligible member contains and misses ; its proposed image is . The UV-compression moves to only if is not already present. Each eligible pair is either kept as a pair or moved from its later to its earlier member, so this operation preserves cardinality and uniformity and strictly decreases the sum of lexicographic order positions whenever it changes the set family.
The essential intersection-preserving lexicographic UV-compression lemma is that this operation preserves an intersecting family whenever all smaller lexicographically improving UV-compressions already leave that set family unchanged. Suppose instead that the compressed set family has disjoint members. At least one, say , must be newly moved. Both newly moved members would contain , so the other, , is a retained old member. Write for the old preimage. Since , we have and . Old intersectingness forces
If , then was eligible for the same UV-compression. Since it was retained, was already present. But , contradicting old intersectingness.
Otherwise . Choose with and . This is a smaller improving pair, since . The old member is eligible for its UV-compression. The assumed stability therefore forces to be present already. Yet its portion outside misses , its remaining portion misses , and misses . Thus , the required contradiction. This proves the lemma, including the size-one case, where only the first alternative can arise.
Starting with , repeatedly choose a changing improving UV-compression with the smallest possible . The lemma applies at each step because every smaller improving UV-compression is then unchanged. Thus every intermediate set family is intersecting. The strictly decreasing nonnegative integer sum of lexicographic order positions ensures termination. If the terminal set family were not an initial segment, there would be a missing earlier than a present . Taking and gives equally sized nonempty disjoint sets with , and moves to the missing . That contradicts termination. The terminal set family is therefore exactly the equally large lexicographic initial segment, and it is intersecting. This proves the required lexicographic statement directly, and hence the Erdős-Ko-Rado theorem.
Identify the vertices of the Boolean hypercube with subsets of , adjacent when their symmetric difference has size one. Write for the closed graph neighbourhood, including itself. In simplicial order on the discrete cube, smaller sets come first, and equal-sized sets are ordered by lexicographic order: the least element of the symmetric difference belongs to the earlier member. Let denote the first vertices. The vertex-isoperimetric inequality in the discrete cube states
Subtracting gives the equivalent assertion for the external vertex boundary.
We first check that is also an initial segment in simplicial order on the discrete cube. Apart from the empty and full cases, consists of complete lower layers and a lexicographic initial segment in its top rank . Its closed graph neighbourhood contains all ranks at most and the upper shadow in rank . This upper shadow is lexicographic initial: an -subset belongs to it precisely when its first -subset in lexicographic order, obtained by deleting its largest element, belongs to . Taking the first elements preserves weak lexicographic order, proving the assertion. This also handles , where consists of ranks zero and one.
We prove the vertex-isoperimetric inequality in the discrete cube by mathematical induction on , with immediate. Fix a coordinate and write for the sections without and with . The two sections of its closed graph neighbourhood are
A simplicial section compression replaces by the initial segment of size in the other coordinates. By the preceding observation, both and are initial segments, so their union has size . The mathematical induction hypothesis gives
Adding the two section bounds proves that simplicial section compression cannot increase the closed graph neighbourhood.
Apply changing simplicial section compressions until none remains. The sum of the global simplicial order on the discrete cube positions strictly decreases at each step: within a section the order is exactly the restriction of the global order. Thus the procedure terminates at a set family every coordinate section of which is initial. We now classify the possible terminal families for simplicial section compression, rather than assuming this terminal set family must be globally initial.
If , and , then cannot agree in any coordinate, since that coordinate section would have an omitted earlier member and an included later one. Therefore . Let be the first omitted vertex and the last included vertex. If is noninitial, and . Any vertex strictly between them would have to be included, since an omitted paired with would have to equal . But it would also have to be omitted, since an included paired with would have to equal . Thus there is no such : are consecutive complementary vertices. Everything before is included and everything after omitted. Hence is obtained from the initial segment of its size by replacing with its immediate successor .
There are only two forms of this exception. If , consecutive complementary vertices must straddle ranks ; otherwise an intermediate rank or a further vertex in one of their ranks separates them. They are consequently
with the last -subset and the first -subset. The corresponding initial segment is all ranks at most . For , the omitted remains in through a lower neighbour, and every -subset has at least two -subsets, only one of which was omitted. Thus contains every rank at most , namely . For both singleton closed graph neighbourhoods are the whole .
If , the two complementary vertices must both have rank . The complement map reverses the lexicographic order in that rank, so a consecutive complementary pair must be its central pair. Exactly half the -subsets contain , and all of those precede those missing . Therefore the pair is
Here comprises all ranks below and all -subsets containing . For , contains every rank at most , because all lower ranks were retained. Every -subset containing has different -subsets containing , so deletion of the one member removes no vertex of the upper shadow. Consequently . For , the two closed graph neighbourhoods both have size three in . These cases exhaust the exceptions. Since the successive simplicial section compressions never increased the closed graph neighbourhood, this proves the vertex-isoperimetric inequality in the discrete cube.
The same argument gives all integer radii. Write for repetitions of the closed graph neighbourhood. Its application to an initial segment is again initial; the sizes of these initial segments are monotone in the original size. Inducting on therefore gives
For the concentration question, use uniform probability measure on a finite connected graph and normalize its graph distance by its graph diameter. A sequence is a Lévy family of graphs if, for every fixed and , the radius- neighbourhood of every set of measure at least has measure tending to one, uniformly over those sets. One may equivalently require this only for sets of measure at least one half. To see the reverse implication, first the radius- neighbourhood of every positive-density set must eventually have measure greater than one half. Otherwise its complement has measure at least one half, while the radius- neighbourhood of that complement misses the original positive-density set, contradicting the half-measure condition. Apply the half-measure condition once more to the radius- neighbourhood, enlarging it by another , to obtain the full claim. The metric normalization is essential here.
For , the graph diameter is . A uniformly chosen vertex has size with binomial distribution , expectation and variance . Fix and choose so that . By Chebyshev's inequality,
For sufficiently large , put . Every initial segment of measure at least contains the complete ranks through . Its radius- graph neighbourhood therefore contains every rank at most . Taking , the all-radius vertex-isoperimetric inequality in the discrete cube gives, uniformly for ,
The last Chebyshev's inequality is used only when its denominator has positive square root. These are precisely the radius- neighbourhoods in the normalized graph distance. The discrete cubes form a Lévy family. In fact, taking in the same bound makes the omitted measure for each fixed : a radius that is already suffices.
For fixed , the nearest-neighbour grid has graph distance and graph diameter . Take the slab , whose uniform measure is at least one half. Its integer radius- graph neighbourhood is exactly : changing the first coordinate alone attains the minimum distance to the slab. For and , the omitted proportion tends to
Thus there is failure of concentration in fixed-dimensional grids, and the fixed-dimensional grids do not form a Lévy family with normalized graph distance.
Use the external external vertex boundary convention
Equivalently, its closed graph neighbourhood is . Some boundary conventions use this closed graph neighbourhood itself; because the compared set families have equal size, either convention gives the same inequality.
Order the Boolean lattice first by increasing size, and within a size by lexicographic order, with the smallest differing coordinate in the earlier set. If is the initial segment in this simplicial order on the discrete cube with , Harper inequality is
In particular, writing , if then .
Here is the full simplicial section compression proof. The cases are immediate. A simplicial initial segment has an initial-segment closed graph neighbourhood: it contains every smaller level, and its remaining upper level is the upper shadow of a lexicographic initial segment. That upper shadow is lexicographic initial because a set has a face in the segment exactly when its earliest face does, and earliest faces preserve lexicographic order.
Assume the result in dimension . For a coordinate , delete it from the present section and write the two sections as . Their neighbourhood sections are exactly
Replace both sections by equally large simplicial initial segments . The mathematical induction hypothesis controls each internal neighbourhood. Both sets in each new union are initial segments, so that union has size equal to the larger of their sizes. The corresponding old union has at least that size. Therefore this simplicial section compression does not enlarge .
Repeatedly compress any noninitial section. Every change strictly reduces the sum of the global simplicial positions of the set family members, so the process terminates at a set family compressed in every section. Suppose an earlier vertex is missing while a later vertex is present. If they agree in any coordinate, they contradict compression of that coordinate's section. Thus . They must also be consecutive in simplicial order: an intermediate vertex, whether present or absent, would create another inversion and would have to equal one of these two complementary vertices. No other inversion is possible for the same reason. Hence is either the required initial segment or that segment with its last vertex exchanged for the next vertex , with complementary.
For completeness, these terminal families for simplicial section compression can be checked explicitly. If , the exceptional consecutive vertices are the last -set and first -set . For , the initial segment is all levels through . After the exchange every vertex of size at most is still in its closed graph neighbourhood: a -set has at least two -faces, so deleting the one face cannot remove it, and itself neighbours a retained smaller set. Thus the new neighbourhood contains the old one. For , the two single-vertex set families have the same neighbourhood.
If , the exceptional pair is and . The initial segment consists of every level below and all -sets containing coordinate one. Its closed graph neighbourhood consists of every level through and the -sets containing coordinate one. For , each of the latter has faces containing coordinate one, so deleting removes no such neighbour. Every lower level remains covered. For , the added vertex itself keeps the sole two-element neighbour covered. Again the exchange does not decrease the neighbourhood. These are the only complementary consecutive pairs, as is seen by checking the central ranks and the lexicographic transition between middle-rank sets containing and avoiding coordinate one.
We have reached a set family whose neighbourhood is at least the initial segment's, without increasing the original neighbourhood. This proves Harper inequality by mathematical induction, including the exceptional compressed set families often omitted from the argument.
For the final request, the usual two-coordinate shift does not increase the boundary of a uniform set family. To see this carefully, let and let move a set containing but not to its partner with replaced by , only if that partner is absent. For any uniform set family ,
Here is the local witness check for the lower shadow inclusion. A shadow member containing neither or both of has an old witness after possibly exchanging in that witness. For a paired shadow vertex containing only, either its old version or its -partner has an old witness, which suffices for its membership in the shifted shadow. For a vertex containing only that survives in the new shadow, its new witness either contains both coordinates, supplying both old shadow partners directly, or is an unshifted -only witness whose -partner was already present. In either event both old shadow partners existed, which is exactly the condition for the -vertex to survive the shadow shift. This exhausts the coordinate patterns.
Taking complements converts an upper shadow into a lower shadow and converts into , proving the second inclusion. Each shift preserves cardinality on the shadow level. The external boundary of an -uniform set family is the disjoint union of its lower and upper shadows, so
The endpoint levels have an empty shadow on one side and obey the same conclusion.
Identify the hypercube graph with , joining two sets when their symmetric difference has size one. Write for the closed graph neighbourhood of , and for its radius- neighbourhood in Hamming distance. In the simplicial order on the discrete cube, smaller sets come first, with lexicographic order within each rank: the smallest differing coordinate belongs to the earlier set. Let be the first vertices in this order. Harper theorem is
Equivalently, minimizes the external vertex boundary at fixed size. We will also obtain for every integer .
Here is a complete proof by simplicial section compression. First note two properties of the simplicial order on the discrete cube. Its restriction to either face obtained by fixing one coordinate is the corresponding order on the smaller hypercube graph. Also, the closed graph neighbourhood of an initial segment is an initial segment. To verify the latter, a nonempty initial segment contains every level below its last level , and a lexicographic prefix at level . For , its closed graph neighbourhood contains every set of size at most , and its only further members are the upper shadow of . An -set lies in this upper shadow exactly when its lexicographically earliest -subset lies in . That earliest subset is obtained by deleting the largest element. These earliest subsets vary monotonically in lexicographic order, so the upper shadow is another lexicographic prefix. For , the closed graph neighbourhood of is the union of levels zero and one. The empty initial segment causes no exception.
Induct on , with immediate. Fix a coordinate and write the sections of as , deleting from the latter section. Replace them by the initial segments with , . The sections of the old closed graph neighbourhood are
By induction their sizes are at least and , respectively. These are exactly the sizes of the new sections, because both sets in each new union are initial segments and hence nested. Thus simplicial section compression preserves size and never enlarges the closed graph neighbourhood.
Repeatedly compress any section that is not already an initial segment. Every change strictly reduces the sum of the global simplicial positions of the included vertices. This nonnegative integer decreases only finitely often, so the process ends at a family whose sections in every coordinate are initial segments. If itself is an initial segment, the induction is complete. Otherwise choose the earliest absent vertex and the latest present vertex , with . They cannot agree in any coordinate: agreement would put them in one compressed section, where an earlier absent vertex cannot precede a later present one. Hence . Nor can a vertex lie between them: if is present, pairing it with would force ; if absent, pairing it with would force . Thus are consecutive, and is obtained from by replacing its last vertex with the next vertex .
There are only two possibilities for these terminal families for simplicial section compression. If , consecutiveness makes the last -set and the first -set. Complementarity forces , and . For , the corresponding contains all sets of size at most except , and additionally . Every -set has at least two -subsets, so at least one belongs to . The missing has a -subset in . Consequently contains every set of size at most , which is exactly .
If , then . Since are complementary, the smaller one contains coordinate . Consecutiveness forces to be the last -set containing , and the first -set avoiding :
The initial segment consists of all sets of size less than and all -sets containing . Its closed graph neighbourhood contains all sets of size at most and all -sets containing . For , each such -set has -subsets containing , so removing only leaves one in . All sets of size at most are still in , because all levels below belong to . Hence again . For , the two families are related by exchanging coordinates and both have the whole as their closed graph neighbourhood. These comparisons finish the induction and prove Harper theorem.
For the radius- version, repeatedly use the one-step result. At each step the comparison family remains an initial segment, and its closed graph neighbourhood is monotone in its size. If , applying Harper theorem to therefore gives . Induction on proves the asserted extension.
A Lévy family of graphs has vanishing concentration of measure functions after distances have been scaled by the graph diameter. More explicitly, for connected finite graphs of diameter , use normalized graph distance and uniform probability measure. For every fixed , require
For this normalization is normalized Hamming distance , since its diameter is .
If , the corresponding initial segment contains the Hamming ball about of radius . The radius- version of Harper theorem implies
Use the precise Hoeffding inequality for . One can also derive this estimate directly: the moment-generating function of is ; the exponential Markov inequality followed by minimization at gives the bound. With , we have . Thus, whenever ,
This proves that the hypercube graphs form a Lévy family of graphs. The stronger fixed-positive-mass formulation follows as well. For any , choose with . The Chebyshev inequality for , whose variance is , makes the Hamming ball of radius have fewer than vertices. An initial segment of size at least contains that ball. Enlarging by and using the same Hoeffding inequality gives a complement proportion tending to zero uniformly over all such . The normalization matters: with unscaled unit Hamming distance, cubes do not satisfy the metric version at every fixed radius; for a radius below one, a half-cube has no enlargement.
Equality in Harper theorem does not determine a down-set up to isomorphism. In , take
This is a down-set of size nine. Its closed graph neighbourhood contains every set of size at most two, because all singletons belong to . Every triple contains an edge of the four-cycle among the listed pairs, so every triple also belongs to . The four-element set does not. Hence .
The size-nine simplicial order on the discrete cube initial segment is all sets of size at most one together with the pairs . Every triple contains one of these pairs, and the four-element set is again absent from its closed graph neighbourhood. Its neighbourhood therefore also has size , proving extremality of . Nevertheless the induced graphs are not isomorphic: in , the empty set has degree four, the four singletons have degree three, and the four pairs have degree two. The initial segment has two vertices of degree four, namely and . Since a graph automorphism preserves induced degree of a vertex, no automorphism of the cube can carry one family to the other. This gives nonunique down-set extremizers for Harper theorem even under the stronger test of induced graph isomorphism.
Identify the Boolean hypercube with the subsets of . For a family , write for its closed vertex neighbourhood, consisting of the family and all vertices at Hamming distance one from it. Order subsets first by increasing size and, within a fixed size, use lexicographic order: at the smallest coordinate on which they differ, the set containing that coordinate comes first. This is the simplicial order on the discrete cube. Harper's theorem states that if is its initial segment of size , then
Thus simplicial initial segments minimize the external vertex boundary for each prescribed family size. The closed-neighbourhood and external-boundary formulations are equivalent because . No edge boundary is involved in this assertion.
We now give the deduction Harper theorem implies the Kruskal-Katona theorem, keeping track of the two different orders. For a family of -sets with , adjoin every smaller set:
Its closed vertex neighbourhood is exactly
where is the upper shadow. Applying Harper theorem to shows that, among -uniform families of fixed size, the lexicographic initial segment minimizes the upper shadow: all the lower-level contributions to the two neighbourhood sizes are identical.
To convert this into a statement about the lower shadow of a -uniform family , take and map each member to , where reverses the ground-set coordinates. Complementation changes lower shadows to upper shadows, and the coordinate reversal preserves their sizes. Moreover, the resulting lexicographic order corresponds exactly to colexicographic order on the original -sets: precedes in colexicographic order precisely when the largest element of lies in . After complementation and reversal, the smallest differing coordinate lies in the image of , as required for the stated lexicographic order. Hence a colexicographic initial segment minimizes the lower shadow, which is the Kruskal-Katona theorem. The cases and are immediate and need no adjoining construction.
For its usual numerical form, write the unique greedy binomial representation
Then the Kruskal-Katona theorem says
Here is why the shadow of the colexicographic initial segment has exactly that size. Its first block consists of all -sets in . If any members remain, they have the form , where runs through a colexicographic initial segment of -sets. The lower shadow consists of all -sets in , together with adjoined to the lower shadow of that remainder. These two blocks are disjoint. Recursing gives precisely the displayed sum. For , both the initial segment and its shadow are empty.
The Erdős-Ko-Rado theorem states that an intersecting family , with , satisfies
The bound is attained by all -sets containing one fixed element. For the proof Erdős-Ko-Rado theorem from shadows, take complements to obtain an -uniform family of the same size, and let be its rank- lower shadow. Every member of is disjoint from some member of , so . Iterating the Kruskal-Katona theorem bounds below by the rank- shadow of the colexicographic initial segment of size . This iteration is valid because lower shadows of colexicographic initial segments are again colexicographic initial segments, as the preceding block description shows.
If , that initial segment contains all -sets in and at least one further set containing . Since , its rank- shadow contains every -set in and at least one -set containing . Thus , implying
contrary to their disjointness. This proves the bound. If , all -sets intersect and the trivial maximum is instead .
For an intersecting family in a product alphabet, label the alphabet by . Partition the words into the classes
Each class has words, and any two distinct words in it disagree in every coordinate. An intersecting family therefore contains at most one word per class. There are classes, and fixing the first coordinate gives an intersecting family of that size. Consequently the exact maximum is
For this just says that the single word may be included.
Finally, for a weakly intersecting family in a product alphabet, associate to each word its support . The occurring supports form an intersecting family of nonempty subsets, and the fibre over support has words. Put . When , , and a support family can contain at most one of each complementary pair . For odd , the larger support in each pair has size greater than , so
All supports of size greater than are mutually intersecting, so taking every word over those supports achieves this bound. Thus the required extremal family is the strict-majority support family, with size
This is the weighted intersecting family bound on an odd Boolean lattice. For , strict inequality between the complementary fibre weights forces this extremal family to be unique. For , it is a largest family but need not be the only one; for example, all supports containing one fixed coordinate also attain the same size. For , no word has a nonempty support, so the maximum is zero, again agreeing with the formula.
Use and for the quantum plane. Its monomials , , form a basis, with multiplication
One way to verify the basis assertion without assuming it is to define this multiplication on the vector space with the displayed formal basis. This defines an associative algebra: for a third monomial , the two products of three monomials have the same exponent of , and its generators satisfy the required relation. Conversely, the relation puts every word into this form, establishing the presentation. Order exponent pairs by the lexicographic order. The largest monomials of two nonzero finite sums give the uniquely largest monomial of their product, with coefficient . Therefore the quantum plane is a domain. If one allows , the assertion fails because with both factors nonzero.
A uniform module is a nonzero module in which any two nonzero submodules have nonzero intersection. Suppose the right regular module of a right Noetherian domain were not a uniform module. Choose nonzero from two right ideals with zero intersection. Then . The right ideals
form a direct sum. For if , then is zero, so by the noncommutative domain property. Cancel the nonzero factor on the left and repeat to obtain every . Each summand is nonzero, so their finite partial sums form a strictly ascending chain of right ideals. This contradicts the ascending chain condition of a right Noetherian ring. Hence is a uniform right module.
It follows that whenever : there are nonzero with . This is the right Ore condition for the multiplicative set ; zero numerators cause no difficulty. The Ore localization theorem therefore constructs the ring of right fractions
The map is injective because an element mapping to zero is annihilated on the right by some nonzero denominator, impossible in a noncommutative domain. To make the denominator convention concrete, if then
For multiplication, choose with ; then
Common right multiples make these operations independent of the chosen representatives. Every nonzero has inverse , so is a division ring. The original field is central in and therefore in the inverses as well, making a division algebra over . No commutative fraction field construction is being assumed.
Let and reverse the order of the ground set by . The resulting bijection sends lexicographic order on to colexicographic order on . It also sends the iterated upper shadow of an -uniform family at level to the lower shadow of the corresponding -uniform family, up to the same harmless reversal of the ground set.
The Kruskal-Katona theorem says that this lower shadow is smallest for an initial colex segment. Undoing the complement and reversal therefore says that the upper shadow of a family of fixed size in is smallest for the initial lex segment.
Simplicial order on the discrete cube Created 2026-10-06 Updated 2026-10-14
Order subsets first by increasing cardinality and, within each level, by lexicographic order, with the smallest differing coordinate belonging to the earlier set. This convention makes simplicial initial segments the extremizers in Harper theorem.
Sorting algorithm 2026-10-13
A sorting algorithm rearranges a finite sequence into nondecreasing order under a chosen total order on its keys. Its output must contain every input entry exactly once, including repetitions: producing ordered values is insufficient if entries are lost. Merge sort is one such algorithm; stable sorting adds a requirement about equal keys.
Sorting creates reusable structure: equal sort keys become adjacent, and a sorted array supports binary search. However, an algorithm correctness check must establish both sortedness and sorting permutation preservation. Replacing every entry by the smallest key can produce ordered keys while destroying the original data. Stable sorting imposes a third condition when equal sort keys occur: retain their arrival order.
For example, take complete sorting records , with the first component as the sort key and the letter as associated data. A correct output is . The sort keys are ordered, every complete sorting record remains, and the equal-key pairs keep before and before . The output satisfies sortedness and sorting permutation preservation, but fails stable sorting. The output has the right multiset of sort keys but loses and duplicates ; it fails sorting permutation preservation of complete sorting records.
To express stable sorting precisely, label every input occurrence by its original position, even when two complete sorting records have identical contents. Let be the output position of the occurrence originally at position . Besides sortedness and sorting permutation preservation, require
Here is the sort key function. Sorting by the pair under lexicographic order gives the same order as stable sorting by : the original position breaks ties without discarding associated data. For a two-field ordering, first apply stable sorting by the secondary sort key, then apply stable sorting by the primary sort key. The second pass retains the secondary order within each group of equal primary sort keys. For instance, first becomes by letter, then by number.