View a set family as a set of vertices of the Boolean lattice. The operation acts independently on each pair , where : it keeps a full or empty pair and moves a sole upper member down. Thus downward coordinate compression preserves cardinality.
Fix a tracing set . If , compression leaves the trace of a set family on unchanged. If , write for the two sections of the old trace, according to absence or presence of . The absent- section of the new trace is . Its present- section is contained in : an upper member survives only when its lower partner was also present in the original family. Consequently
In particular, downward coordinate compression cannot create new set shattering.
Repeatedly apply any changing downward coordinate compression. Each change strictly decreases , so the process terminates at a down-set with the same cardinality and with no larger trace on any . The Sauer-Shelah lemma says that a family shattering no -element set satisfies
Indeed, the compressed down-set also shatters no -element set. If it contained any member of size at least , all subsets of a -subset of that member would belong to the down-set, contradicting this restriction. Every member therefore has size at most , giving the bound. Equivalently, VC dimension at most gives size at most . The family of all sets of size at most attains this bound.
There is a different extremal example when . Toggle a fixed coordinate in the family of sets of size at most two:
The symmetric difference is a bijection, so this family has members. On each tracing set , it simply toggles coordinate if ; thus it preserves trace cardinality and set shattering. A triple has seven trace patterns, not eight. The new family differs from the original one because it contains . For the specified cardinality is , so the entire power set is the unique family of that size; the different example requires .
For the final bound, let count pairs both in the family. Deleting coordinate identifies precisely these pairs, so
Suppose every deletion lost at least two members, so for every . The trace inequality and preservation of cardinality show that after downward coordinate compression. The down-set contains the empty set and every singleton. For each , its second edge in direction has an upper endpoint of size at least two. Downward closure then supplies a pair . The pairs in therefore cover all coordinates, so at least pairs are needed. This proves two cube edges in every direction force many vertices:
Taking the contrapositive gives the required answer:
The threshold is sharp for every . Take the empty set, all singletons and pairs covering every coordinate. For even , use the disjoint pairs ; for odd , pair the first coordinates and add . This down-set has exactly members and at least two edges in every direction, so every -coordinate trace has size at most . Adding further members preserves those pairs and therefore preserves the failure whenever a larger cardinality is feasible. For , the putative counterexample cardinality is three, exceeding the size of the Boolean lattice; the sharpness construction naturally starts at .
Choose a uniformly random permutation of and take its initial segments. This produces a Uniformly random maximal chain in a Boolean lattice. A fixed -set belongs to this chain with probability . An antichain meets the chain at most once, so taking the expected value of the number of meetings proves the LYM inequality:
In particular the Sperner theorem bound follows by multiplying each summand by at most the largest binomial coefficient.
For the vector request, an ordering by ordinary subset need not work: distinct vectors may cancel. Instead, write and construct a separated block decomposition for vector subset sums. A block is separated if distinct labeled members have subset sums at distance at least one. We prove that the labeled subsets of can be partitioned into separated blocks, with
blocks of size , for , with .
For the one subset forms one block. Suppose a block of sums has already been constructed for vectors, and let . Choose minimizing in the block. Replace the two copies of the block, with and without the new coordinate, by the following two blocks:
The old labels are retained, so these partition the two copies even if equal sums occur in different blocks. Translation preserves separation in the first translated portion, and the second block is a subset of the old separated block. For the new cross pairs, Cauchy-Schwarz inequality gives
Thus both new blocks are separated. Their sizes are and , omitting an empty block. The resulting size-profile recurrence is , and Pascal's identity verifies the displayed binomial-difference formula, including the even middle boundary. The total number of blocks telescopes to .
A signed sum associated with is . If two signed sums lie in the open ball of radius one, their difference has norm less than two, so their subset sums have distance less than one. At most one can therefore lie in any separated block. Hence the Littlewood-Offord inequality is
The counting is by sign choices, not by distinct numerical values of the sums. The open-ball condition handles the equality-distance boundary correctly.
For the last request take real coefficients. Absorb their signs into the choices , so all coefficients are positive and at least one. A signed-sum real interval of length four corresponds to a subset-sum real interval of length two. A strict three-member inclusion chain would have , which cannot occur in that open real interval. Thus its set family is a k-Sperner family with . Every maximal chain in a Boolean lattice meets it at most twice, yielding . Write , so and . If are the two largest binomial coefficients and is the fraction at a largest level, then . This proves the two-level Littlewood-Offord bound:
It is the greatest possible number uniformly over choices of coefficients and center. For even , take every coefficient equal to one and center : the real interval contains the sum levels , of multiplicities . For odd , take center zero, giving levels , each of multiplicity . These attain the bound. For the only sign choice gives the separate maximum one. Attainment here is at the exhibited centers; it need not hold at every prescribed center.
Assume first , and write . The sharp nonuniform t-intersecting family bound is
We prove the bound by deriving the needed Kleitman diametric theorem. Identify subsets with binary words, with Hamming distance . Let be the two expressions above. A set family of Hamming diameter at most has size at most , as follows.
First apply downward coordinate compression: delete coordinate from a member only when its deletion is not already present. This preserves size and cannot increase the Hamming diameter. The only possible increased distance would be between a newly lowered member and a retained member containing . The deletion must have belonged to the old set family, or would have been lowered too. The old pair has precisely that increased distance, proving it was already allowed. Repeated downward compressions terminate in a down-set.
Next apply all elementary set shifts with . They preserve size and Hamming diameter. If shifting one member but retaining the other increased their distance, the retained member must contain but not ; its shifted partner was already present, and the old pair with that partner has the same distance. These shifts preserve the down-set property: a subset of a shifted member either was already present or is obtained by shifting its corresponding old subset. For a retained member, a subset cannot disappear, because the shifted partner of that subset is also a subset of the member or of its retained shifted partner. Repeated shifts terminate, since the sum of the selected coordinate labels decreases whenever a change occurs. We now have a shifted down-set of the same size and Hamming diameter.
Split it into sections on :
The first section has Hamming diameter at most . We claim the second has Hamming diameter at most . For , downward closure gives . Compare with . Their distance is , so . Choose outside their union. Shiftedness puts in , while is a member of . Their distance is , proving the claim. For this argument forces to be empty.
The induction now gives
where negative-diameter set families are empty. The equality of the numerical expressions is Pascal's identity. The base case has at most one member. At the boundary , at most one member of each complementary pair is allowed, giving , which equals by binomial symmetry. For the remaining cases , both section bounds belong to smaller-dimensional induction cases. This completes the diametric proof.
For a -intersecting set family,
so the theorem applies. For , equality is attained by all sets of size at least , since two such sets intersect in at least elements. For , take all sets of size at least , and also all -sets avoiding one fixed point. Two of these smaller sets intersect in at least points; a smaller and a larger set intersect in at least ; two larger sets intersect in at least . The size of this set family is
so it attains the odd bound. If , the full power set is admissible; if , the only admissible set family is empty.
Every maximal 1-intersecting set family attains , for . Such a set family is an up-set, since adding a superset preserves set intersections. It contains and omits the empty set. It contains at most one member of any complementary pair. If neither of two nonempty complements were present, maximality would give a member disjoint from ; upward closure would then include , a contradiction. Thus it chooses precisely one member of each complementary pair, as in maximal intersecting families choose one member of every complementary pair.
Not every maximal 2-intersecting set family attains the bound. On four points, let . This set family has four members and is maximal: every missing set meets its member in at most one point. The sharp bound is , attained by all sets of size at least three. This proves maximal intersection does not imply maximum size.
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.