The Mathlib Handbook

The volumes of the handbook are not written yet. This site shows the map of Mathlib that they will follow, at Mathlib 4472534b60.

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 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 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 n so that it also applies to β„•. Probably LocallyFiniteOrderBot will 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.