The areas / V30. Combinatorics
Mathlib.Combinatorics.SetFamily.KruskalKatona
8 declarations. Mathlib docs Β· Source
Kruskal-Katona theorem
This file proves the Kruskal-Katona theorem. This is a sharp statement about how many sets of size
k - 1 are covered by a family of sets of size k, given only its size.
Main declarations
The key results proved here are:
Finset.kruskal_katona: The basic Kruskal-Katona theorem. Given a set familyπconsisting ofr-sets, andπan initial segment of the colex order of the same size, the shadow ofπis smaller than the shadow ofπ. In particular, this shows that the minimum shadow size is achieved by initial segments of colex.Finset.iterated_kruskal_katona: An iterated form of the Kruskal-Katona theorem, stating that the minimum iterated shadow size is given by initial segments of colex.
TODO
- Define the
k-cascade representation of a natural and prove the corresponding version of Kruskal-Katona. - Abstract away from
Fin nso that it also applies toβ. ProbablyLocallyFiniteOrderBotwill help here. - Characterise the equality case.
References
- http://b-mehta.github.io/maths-notes/iii/mich/combinatorics.pdf
- http://discretemath.imp.fu-berlin.de/DMII-2015-16/kruskal.pdf
Tags
kruskal-katona, kruskal, katona, shadow, initial segments, intersecting
theorem Finset.Colex.shadow_initSeg E1 #
β {Ξ± : Type u_1} [inst : LinearOrder Ξ±] {s : Finset Ξ±} [inst_1 : Fintype Ξ±] (hs : s.Nonempty),
(Finset.Colex.initSeg s).shadow = Finset.Colex.initSeg (s.erase (s.min' hs))
This is important for iterating Kruskal-Katona: the shadow of an initial segment is also an initial segment.
theorem Finset.Colex.IsInitSeg.shadow E1 #
β {Ξ± : Type u_1} [inst : LinearOrder Ξ±] {π : Finset (Finset Ξ±)} {r : β} [Finite Ξ±],
Finset.Colex.IsInitSeg π r β Finset.Colex.IsInitSeg π.shadow (r - 1)
The shadow of an initial segment is also an initial segment.
theorem Finset.UV.toColex_compress_lt_toColex E1 #
β {Ξ± : Type u_1} [inst : LinearOrder Ξ±] {s U V : Finset Ξ±} {hU : U.Nonempty} {hV : V.Nonempty},
U.max' hU < V.max' hV β UV.compress U V s β s β toColex (UV.compress U V s) < toColex s
Applying the compression makes the set smaller in colex. This is intuitive since a portion of
the set is being "shifted down" as max U < max V.
theorem Finset.UV.isInitSeg_of_compressed E1 #
β {Ξ± : Type u_1} [inst : LinearOrder Ξ±] {β¬ : Finset (Finset Ξ±)} {r : β},
Set.Sized r ββ¬ β
(β (U V : Finset Ξ±), Finset.UV.UsefulCompressionβ U V β UV.IsCompressed U V β¬) β Finset.Colex.IsInitSeg β¬ r
If we're compressed by all useful compressions, then we're an initial segment. This is the other key Kruskal-Katona part.
theorem Finset.kruskal_katona E3 #
β {n r : β} {π π : Finset (Finset (Fin n))},
Set.Sized r βπ β π.card β€ π.card β Finset.Colex.IsInitSeg π r β π.shadow.card β€ π.shadow.card
The Kruskal-Katona theorem.
Given a set family π consisting of r-sets, and π an initial segment of the colex order of the
same size, the shadow of π is smaller than the shadow of π. In particular, this gives that the
minimum shadow size is achieved by initial segments of colex.
theorem Finset.iterated_kk E2 #
β {n r k : β} {π π : Finset (Finset (Fin n))},
Set.Sized r βπ β
π.card β€ π.card β Finset.Colex.IsInitSeg π r β (Finset.shadow^[k] π).card β€ (Finset.shadow^[k] π).card
An iterated form of the Kruskal-Katona theorem. In particular, the minimum possible iterated shadow size is attained by initial segments.
theorem Finset.kruskal_katona_lovasz_form E2 #
β {n r k i : β} {π : Finset (Finset (Fin n))},
i β€ r β r β€ k β k β€ n β Set.Sized r βπ β k.choose r β€ π.card β k.choose (r - i) β€ (Finset.shadow^[i] π).card
The Lovasz formulation of the Kruskal-Katona theorem.
If |π| β₯ k choose r, (and everything in π has size r) then the initial segment we compare to
is just all the subsets of {0, ..., k - 1} of size r. The i-th iterated shadow of this is all
the subsets of {0, ..., k - 1} of size r - i, so the i-th iterated shadow of π has at least
k.choose (r - i) elements.
theorem Finset.erdos_ko_rado E3 #
β {n : β} {π : Finset (Finset (Fin n))} {r : β},
(βπ).Intersecting β Set.Sized r βπ β r β€ n / 2 β π.card β€ (n - 1).choose (r - 1)
The ErdΕsβKoβRado theorem.
The maximum size of an intersecting family in Ξ± where all sets have size r is bounded by
(card Ξ± - 1).choose (r - 1). This bound is sharp.