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.LYM

16 declarations. Mathlib docs ยท Source

Lubell-Yamamoto-Meshalkin inequality and Sperner's theorem

This file proves the local LYM and LYM inequalities as well as Sperner's theorem.

Main declarations

  • Finset.local_lubell_yamamoto_meshalkin_inequality_div: Local Lubell-Yamamoto-Meshalkin inequality. The shadow of a set ๐’œ in a layer takes a greater proportion of its layer than ๐’œ does.
  • Finset.lubell_yamamoto_meshalkin_inequality_sum_card_div_choose: Lubell-Yamamoto-Meshalkin inequality. The sum of densities of ๐’œ in each layer is at most 1 for any antichain ๐’œ.
  • IsAntichain.sperner: Sperner's theorem. The size of any antichain in Finset ฮฑ is at most the size of the maximal layer of Finset ฮฑ. It is a corollary of lubell_yamamoto_meshalkin_inequality_sum_card_div_choose.

TODO

Prove upward local LYM.

Provide equality cases. Local LYM gives that the equality case of LYM and Sperner is precisely when ๐’œ is a middle layer.

falling could be useful more generally in grade orders.

References

  • http://b-mehta.github.io/maths-notes/iii/mich/combinatorics.pdf
  • http://discretemath.imp.fu-berlin.de/DMII-2015-16/kruskal.pdf

Tags

shadow, lym, slice, sperner, antichain

Local LYM inequality

LYM inequality

Sperner's theorem

theorem Finset.local_lubell_yamamoto_meshalkin_inequality_mul E1 #

โˆ€ {ฮฑ : Type u_2} [inst : DecidableEq ฮฑ] [inst_1 : Fintype ฮฑ] {๐’œ : Finset (Finset ฮฑ)} {r : โ„•},
  Set.Sized r โ†‘๐’œ โ†’ ๐’œ.card * r โ‰ค ๐’œ.shadow.card * (Fintype.card ฮฑ - r + 1)

The downward local LYM inequality, with cancelled denominators. ๐’œ takes up less of ฮฑ^(r) (the finsets of card r) than โˆ‚๐’œ takes up of ฮฑ^(r - 1).

theorem Finset.card_mul_le_card_shadow_mul E1 #

โˆ€ {ฮฑ : Type u_2} [inst : DecidableEq ฮฑ] [inst_1 : Fintype ฮฑ] {๐’œ : Finset (Finset ฮฑ)} {r : โ„•},
  Set.Sized r โ†‘๐’œ โ†’ ๐’œ.card * r โ‰ค ๐’œ.shadow.card * (Fintype.card ฮฑ - r + 1)

The downward local LYM inequality, with cancelled denominators. ๐’œ takes up less of ฮฑ^(r) (the finsets of card r) than โˆ‚๐’œ takes up of ฮฑ^(r - 1).

theorem Finset.local_lubell_yamamoto_meshalkin_inequality_div E3 #

โˆ€ {๐•œ : Type u_1} {ฮฑ : Type u_2} [inst : Semifield ๐•œ] [inst_1 : LinearOrder ๐•œ] [IsStrictOrderedRing ๐•œ]
  [inst_3 : DecidableEq ฮฑ] [inst_4 : Fintype ฮฑ] {๐’œ : Finset (Finset ฮฑ)} {r : โ„•},
  r โ‰  0 โ†’ Set.Sized r โ†‘๐’œ โ†’ โ†‘๐’œ.card / โ†‘((Fintype.card ฮฑ).choose r) โ‰ค โ†‘๐’œ.shadow.card / โ†‘((Fintype.card ฮฑ).choose (r - 1))

The downward local LYM inequality. ๐’œ takes up less of ฮฑ^(r) (the finsets of card r) than โˆ‚๐’œ takes up of ฮฑ^(r - 1).

theorem Finset.card_div_choose_le_card_shadow_div_choose E1 #

โˆ€ {๐•œ : Type u_1} {ฮฑ : Type u_2} [inst : Semifield ๐•œ] [inst_1 : LinearOrder ๐•œ] [IsStrictOrderedRing ๐•œ]
  [inst_3 : DecidableEq ฮฑ] [inst_4 : Fintype ฮฑ] {๐’œ : Finset (Finset ฮฑ)} {r : โ„•},
  r โ‰  0 โ†’ Set.Sized r โ†‘๐’œ โ†’ โ†‘๐’œ.card / โ†‘((Fintype.card ฮฑ).choose r) โ‰ค โ†‘๐’œ.shadow.card / โ†‘((Fintype.card ฮฑ).choose (r - 1))

The downward local LYM inequality. ๐’œ takes up less of ฮฑ^(r) (the finsets of card r) than โˆ‚๐’œ takes up of ฮฑ^(r - 1).

def Finset.falling E1 #

{ฮฑ : Type u_2} โ†’ [DecidableEq ฮฑ] โ†’ โ„• โ†’ Finset (Finset ฮฑ) โ†’ Finset (Finset ฮฑ)

falling k ๐’œ is all the finsets of cardinality k which are a subset of something in ๐’œ.

theorem Finset.mem_falling E0 #

โˆ€ {ฮฑ : Type u_2} [inst : DecidableEq ฮฑ] {k : โ„•} {๐’œ : Finset (Finset ฮฑ)} {s : Finset ฮฑ},
  s โˆˆ Finset.falling k ๐’œ โ†” (โˆƒ t โˆˆ ๐’œ, s โІ t) โˆง s.card = k

theorem Finset.sized_falling E1 #

โˆ€ {ฮฑ : Type u_2} [inst : DecidableEq ฮฑ] (k : โ„•) (๐’œ : Finset (Finset ฮฑ)), Set.Sized k โ†‘(Finset.falling k ๐’œ)

theorem Finset.slice_subset_falling E1 #

โˆ€ {ฮฑ : Type u_2} [inst : DecidableEq ฮฑ] (k : โ„•) (๐’œ : Finset (Finset ฮฑ)), ๐’œ.slice k โІ Finset.falling k ๐’œ

theorem Finset.falling_zero_subset E1 #

โˆ€ {ฮฑ : Type u_2} [inst : DecidableEq ฮฑ] (๐’œ : Finset (Finset ฮฑ)), Finset.falling 0 ๐’œ โІ {โˆ…}

theorem Finset.slice_union_shadow_falling_succ E1 #

โˆ€ {ฮฑ : Type u_2} [inst : DecidableEq ฮฑ] (k : โ„•) (๐’œ : Finset (Finset ฮฑ)),
  ๐’œ.slice k โˆช (Finset.falling (k + 1) ๐’œ).shadow = Finset.falling k ๐’œ

theorem Finset.IsAntichain.disjoint_slice_shadow_falling E1 #

โˆ€ {ฮฑ : Type u_2} [inst : DecidableEq ฮฑ] {๐’œ : Finset (Finset ฮฑ)} {m n : โ„•},
  IsAntichain (fun x1 x2 โ†ฆ x1 โІ x2) โ†‘๐’œ โ†’ Disjoint (๐’œ.slice m) (Finset.falling n ๐’œ).shadow

The shadow of falling m ๐’œ is disjoint from the n-sized elements of ๐’œ, thanks to the antichain property.

theorem Finset.le_card_falling_div_choose E1 #

โˆ€ {๐•œ : Type u_1} {ฮฑ : Type u_2} [inst : Semifield ๐•œ] [inst_1 : LinearOrder ๐•œ] [IsStrictOrderedRing ๐•œ]
  [inst_3 : DecidableEq ฮฑ] {k : โ„•} {๐’œ : Finset (Finset ฮฑ)} [inst_4 : Fintype ฮฑ],
  k โ‰ค Fintype.card ฮฑ โ†’
    IsAntichain (fun x1 x2 โ†ฆ x1 โІ x2) โ†‘๐’œ โ†’
      โˆ‘ r โˆˆ Finset.range (k + 1),
          โ†‘(๐’œ.slice (Fintype.card ฮฑ - r)).card / โ†‘((Fintype.card ฮฑ).choose (Fintype.card ฮฑ - r)) โ‰ค
        โ†‘(Finset.falling (Fintype.card ฮฑ - k) ๐’œ).card / โ†‘((Fintype.card ฮฑ).choose (Fintype.card ฮฑ - k))

A bound on any top part of the sum in LYM in terms of the size of falling k ๐’œ.

theorem Finset.lubell_yamamoto_meshalkin_inequality_sum_card_div_choose E3 #

โˆ€ {๐•œ : Type u_1} {ฮฑ : Type u_2} [inst : Semifield ๐•œ] [inst_1 : LinearOrder ๐•œ] [IsStrictOrderedRing ๐•œ]
  [inst_3 : Fintype ฮฑ] {๐’œ : Finset (Finset ฮฑ)},
  IsAntichain (fun x1 x2 โ†ฆ x1 โІ x2) โ†‘๐’œ โ†’
    โˆ‘ r โˆˆ Finset.range (Fintype.card ฮฑ + 1), โ†‘(๐’œ.slice r).card / โ†‘((Fintype.card ฮฑ).choose r) โ‰ค 1

The Lubell-Yamamoto-Meshalkin inequality, also known as the LYM inequality.

If ๐’œ is an antichain, then the sum of the proportion of elements it takes from each layer is less than 1.

theorem Finset.sum_card_slice_div_choose_le_one E2 #

โˆ€ {๐•œ : Type u_1} {ฮฑ : Type u_2} [inst : Semifield ๐•œ] [inst_1 : LinearOrder ๐•œ] [IsStrictOrderedRing ๐•œ]
  [inst_3 : Fintype ฮฑ] {๐’œ : Finset (Finset ฮฑ)},
  IsAntichain (fun x1 x2 โ†ฆ x1 โІ x2) โ†‘๐’œ โ†’
    โˆ‘ r โˆˆ Finset.range (Fintype.card ฮฑ + 1), โ†‘(๐’œ.slice r).card / โ†‘((Fintype.card ฮฑ).choose r) โ‰ค 1

The Lubell-Yamamoto-Meshalkin inequality, also known as the LYM inequality.

If ๐’œ is an antichain, then the sum of the proportion of elements it takes from each layer is less than 1.

theorem Finset.lubell_yamamoto_meshalkin_inequality_sum_inv_choose E2 #

โˆ€ {๐•œ : Type u_1} {ฮฑ : Type u_2} [inst : Semifield ๐•œ] [inst_1 : LinearOrder ๐•œ] [IsStrictOrderedRing ๐•œ]
  [inst_3 : Fintype ฮฑ] {๐’œ : Finset (Finset ฮฑ)},
  IsAntichain (fun x1 x2 โ†ฆ x1 โІ x2) โ†‘๐’œ โ†’ โˆ‘ s โˆˆ ๐’œ, (โ†‘((Fintype.card ฮฑ).choose s.card))โปยน โ‰ค 1

The Lubell-Yamamoto-Meshalkin inequality, also known as the LYM inequality.

If ๐’œ is an antichain, then the sum of (#ฮฑ.choose #s)โปยน over s โˆˆ ๐’œ is less than 1.

theorem IsAntichain.sperner E3 #

โˆ€ {ฮฑ : Type u_2} [inst : Fintype ฮฑ] {๐’œ : Finset (Finset ฮฑ)},
  IsAntichain (fun x1 x2 โ†ฆ x1 โІ x2) โ†‘๐’œ โ†’ ๐’œ.card โ‰ค (Fintype.card ฮฑ).choose (Fintype.card ฮฑ / 2)

Sperner's theorem. The size of an antichain in Finset ฮฑ is bounded by the size of the maximal layer in Finset ฮฑ. This precisely means that Finset ฮฑ is a Sperner order.