Upper-shadow and Macaulay layer #
This file connects Kruskal-Katona upper-shadow estimates to the Macaulay exchange inequalities used in Harper's theorem.
Upper-shadow / excess function. For a count binomPrefix N r + t
(a full Hamming ball of radius r-1 plus t vertices of layer r), this is the
number of vertices the closed neighbourhood adds beyond the full ball of radius
r, i.e. the size of the upper shadow of the first t vertices of layer r.
Equations
- BooleanIsoperimetry.upperShadow N r t = BooleanIsoperimetry.H N (BooleanIsoperimetry.binomPrefix N r + t) - BooleanIsoperimetry.binomPrefix N (r + 1)
Instances For
Macaulay closed form for H on a partial layer. For 1 ≤ r, the
boundary of a full ball of radius r-1 plus the first t vertices of layer r
equals the next full ball binomPrefix N (r+1) plus the upper shadow
upperShadow N r t. This is sorry-free: it is just the definition of
upperShadow together with the monotonicity bound
binomPrefix N (r+1) = H N (binomPrefix N r) ≤ H N (binomPrefix N r + t).
The upper shadow of an empty partial layer is empty.
The upper shadow is monotone in the partial-layer parameter t.
A complete layer has upper shadow equal to the full next layer
Nat.choose N (r+1): the upper shadow of all of layer r is all of layer
r+1.
Kruskal–Katona/Macaulay upper bound: the upper shadow of a partial layer
never exceeds the full next layer. Sorry-free monotone consequence of
upperShadow_full.
The Macaulay exchange leaf and its two shadow-sum corollaries #
The genuine numerical heart of the positive-cascade Harper step is the
regime-free max-form exchange theorem below. It says that for p + q = a + b
with (p, q) the canonical cascade split of the common total, the canonical
cross-boundary cost is no larger than the cost of the arbitrary split (a, b).
The two public H_shadow_* statements are max-free regime corollaries of this
single exchange theorem: the positive canonical split collapses the left maxs
to H N p + H N q, and the LE/GT hypotheses collapse the right maxs to the
advertised sums. Via H_shadow_closed_form (see
H_shadow_LE_sum_as_upperShadow) these corollaries are still the upper-shadow
sum comparisons used by the Frankl–Füredi/Kruskal–Katona calculation.
Positive Frankl–Füredi / Macaulay exchange step. For a positive
canonical cascade split (p, q) of a + b at level N, the canonical
cross-boundary cost is at most the cross-boundary cost of the arbitrary split
(a, b).
This is the remaining PDF-layer theorem: the paired Up/Down compression plus the
Macaulay/Kruskal–Katona shadow comparison in the nondegenerate branch. The
q = 0 branch is proved separately below by direct cascade arithmetic, and the
full exchange theorem is assembled from the two branches.
The top coordinate Fin.last n never lies in the image of Fin.castSucc,
since Fin.castSucc i < Fin.last n always.
embed0 is injective: it is Finset.image along the injective Fin.castSucc.
embed1 is injective: it inserts the top coordinate into the image of the
injective Fin.castSucc, and that top coordinate is never already present.
Macaulay shadow-sum leaf, LE regime. For the canonical cascade split
(p, q) of a + b with b ≤ a and a ≤ H N b (the LE regime in which the
outer boundary maxs collapse to H N a + H N b), the canonical boundary sum is
minimal. Via H_shadow_closed_form this is the upper-shadow comparison
upperShadow N rp tp + upperShadow N rq tq ≤ upperShadow N ra ta + upperShadow N rb tb
modulo whole layers (see H_shadow_LE_sum_as_upperShadow). This is the genuine
Kruskal–Katona/Macaulay leaf; it is true (verified against the exact cascade model
of H, all split dimensions N ≤ 4) but its proof is the Frankl–Füredi shadow
calculation, which is now fully formalized and sorry-free.
Macaulay shadow-sum leaf, GT regime. For the canonical cascade split
(p, q) of a + b with b ≤ a and H N b < a (the GT/slack regime in which the
outer boundary max (H N b) a collapses to a), the canonical boundary sum is
bounded by H N a + a. As with the LE leaf, via H_shadow_closed_form this is a
sum comparison of upperShadow quantities with the GT slack a. This is the
genuine GT shadow-deficit leaf of Frankl–Füredi; true (cascade-model verified) but
now fully formalized and sorry-free.
Regime-free max-form exchange theorem, assembled from the proved degenerate
q = 0 branch and the positive Frankl–Füredi/Macaulay leaf.
Scalar Frankl–Füredi / Macaulay crux (★). The single inductive step of
Harper's vertex-isoperimetric theorem: for capacity-bounded slice masses
x, y ≤ 2^n, the boundary of the canonical split of x + y at level n+1 is at
most the cross-slice boundary functional max (H n x) y + max (H n y) x.
This is the genuine remaining obstruction — the Frankl–Füredi paired-compression /
Kruskal–Katona–Macaulay shadow comparison — now stated as a pure scalar
inequality in three naturals. It is strictly narrower than the family-level
harper_vertex_iso below (which is proved from it via the slice induction),
and is equivalent (through H_succ_cascade) to the finite-checked max-form
exchange step.
Harper's vertex-isoperimetric theorem (master form). For every finite
family A of vertices of the N-cube, the simplicial initial segment of the
same size has a closed 1-neighbourhood no larger than A's; equivalently the
boundary function H N A.card lower-bounds (neighborhood 1 A).card.
This is the Frankl–Füredi/PDF master statement, generalising the initial-segment
identity H to arbitrary families. It is proved here by the standard
slice induction on N: neighborhood_succ decomposes the boundary across the
two coordinate slices, the induction hypothesis bounds each slice, and the single
cross-slice crux is harper_split_min.
Layer-sum bridge (sorry-free). Given the Macaulay layer decompositions of
a, b, p, q (each a full ball of radius rx - 1 plus tx vertices of layer
rx, with 1 ≤ rx), the LE/GT boundary sums are exactly the corresponding sums
of binomPrefix whole-layer terms plus upperShadow partial-layer terms. This
makes precise that H_shadow_LE_sum / H_shadow_GT_sum are pure upper-shadow
(Kruskal–Katona/Macaulay) inequalities, and lets the leaves be checked
empirically by tabulating upperShadow. It is a direct consequence of
H_shadow_closed_form, hence sorry-free.