If no -set were shattered, the Sauer-Shelah lemma would bound the number of traces by . This strict middle-layer gap contradicts the displayed lower bound. Therefore a family with such traces at every even size has unbounded finite VC dimension.
The Sauer-Shelah lemma says that a hypothesis class of finite VC dimension satisfies
In particular, for ,
Here the binomial coefficients count small subsets. One way to obtain the last inequality is to set : since for ,
Thus finite VC dimension replaces the unrestricted exponential number of labellings by a polynomial bound in the sample size.
Fix an -point set . The restriction of an intersection to is determined by the ordered pair of restrictions . Some pairs can yield the same intersection, so the growth function of a hypothesis class satisfies
Assume first that . If points were shattered by , the Sauer-Shelah lemma would imply
But , so . Raising this strict inequality to the positive integer power gives a contradiction. No -point set can therefore be shattered; neither can any larger set, since shattering passes to subsets. Consequently
The printed strict inequality needs . For example, on a nonempty domain let contain only the identically zero classifier. Then , whereas the stated conclusion would require . More generally, a nonempty hypothesis class of VC dimension zero has only one distinct labelling function, since two different functions would shatter a point on which they differ. Its self-intersection class also has VC dimension zero.
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 .
A set family shatters a set when its traces on include all of . The Sauer-Shelah lemma says that a set family which shatters no -set satisfies
Equivalently, if exceeds this sum, it shatters a -set. Binomial coefficients with index greater than are zero; if the inequality reduces to the whole-power-set bound. The VC dimension formulation puts .
We give the full inductive proof. Split according to the last coordinate, deleting that coordinate from the present section, and write these two set families on as . Put
The inclusion-exclusion principle gives . If shattered a -set, then would shatter it too. If shattered a -set , both versions of each required trace, with and without the last coordinate, would occur in , which would shatter . Thus the two mathematical induction bounds apply:
using Pascal's identity. For the set family has at most one member. For , the intersection section must be empty, since any nonempty set family shatters the empty set. These supply the mathematical induction bases; the forbidden-empty-set case has an empty set family and an empty sum. Sharpness is attained by all subsets of size at most , which cannot shatter a -set.
Now fix in the infinite-ground-set problem. Choose, using the hypothesis with , a set of size with at least distinct traces. If its trace set family shattered no -set, the Sauer-Shelah lemma would give
a contradiction. Therefore some of size is shattered by the trace set family, and hence by itself. Thus every finite shattering size occurs. The use of makes the contradiction strict, even though the hypothesis only gives a half-power-set lower bound.
An infinite realization does not follow. For a concrete unbounded finite shattering without an infinite universal trace construction, partition into disjoint finite blocks
and take
Every member is finite. Given , choose ; its trace set family is the full power set, so it has members and is shattered. However, an infinite cannot be contained in one finite block. Choose from different blocks. No member of contains both, so is not a trace on . Consequently there need not be an infinite whose traces contain every finite subset of .
The Sauer-Shelah lemma states that if , then
In particular, the Sauer-Shelah growth bound gives .
If is shattered by , then all label vectors belong to the union of the label-vector sets generated by the individual classes. The shattering coefficient of a union and the Sauer-Shelah lemma therefore give
Taking base-two logarithms yields
For , apply the stated elementary bound with and :
If , the assertion follows directly from . Taking the largest shattered sample size proves
For a binary function class , the shattering coefficient is
Its VC dimension is the largest for which , with value infinity if there is no largest such . The Sauer-Shelah lemma states that, when ,
Set shattering 2026-10-14
A set family shatters when every subset of occurs as a trace of a set family. The largest finite shattered-set size is its VC dimension. The Sauer-Shelah lemma bounds the number of traces when no set of a given size is shattered.