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

42 declarations. Mathlib docs · Source

The Ahlswede-Zhang identity

This file proves the Ahlswede-Zhang identity, which is a nontrivial relation between the size of the "truncated unions" of a set family. It sharpens the Lubell-Yamamoto-Meshalkin inequality Finset.lubell_yamamoto_meshalkin_inequality_sum_card_div_choose, by making explicit the correction term.

For a set family 𝒜 over a ground set of size n, the Ahlswede-Zhang identity states that the sum of |⋂ B ∈ 𝒜, B ⊆ A, B|/(|A| * n.choose |A|) over all sets A is exactly 1. This implies the LYM inequality since for an antichain 𝒜 and every A ∈ 𝒜 we have |⋂ B ∈ 𝒜, B ⊆ A, B|/(|A| * n.choose |A|) = 1 / n.choose |A|.

Main declarations

  • Finset.truncatedSup: s.truncatedSup a is the supremum of all b ≥ a in 𝒜 if there are some, or ⊤ if there are none.
  • Finset.truncatedInf: s.truncatedInf a is the infimum of all b ≤ a in 𝒜 if there are some, or ⊥ if there are none.
  • AhlswedeZhang.infSum: LHS of the Ahlswede-Zhang identity.
  • AhlswedeZhang.le_infSum: The sum of 1 / n.choose |A| over an antichain is less than the RHS of the Ahlswede-Zhang identity.
  • AhlswedeZhang.infSum_eq_one: Ahlswede-Zhang identity.

References

Truncated supremum, truncated infimum

theorem AhlswedeZhang.supSum.congr_simp E1 #

∀ {α : Type u_1} [inst : Fintype α] {inst_1 : DecidableEq α} [inst_2 : DecidableEq α] (𝒜 𝒜_1 : Finset (Finset α)),
  𝒜 = 𝒜_1 → AhlswedeZhang.supSum 𝒜 = AhlswedeZhang.supSum 𝒜_1

def Finset.truncatedSup E3 #

{α : Type u_1} → [inst : SemilatticeSup α] → [DecidableLE α] → [OrderTop α] → Finset α → α → α

The supremum of the elements of s less than a if there are some, otherwise ⊤.

theorem Finset.truncatedSup_of_mem E1 #

∀ {α : Type u_1} [inst : SemilatticeSup α] {s : Finset α} {a : α} [inst_1 : DecidableLE α] [inst_2 : OrderTop α]
  (h : a ∈ lowerClosure ↑s), s.truncatedSup a = {b ∈ s | a ≤ b}.sup' ⋯ id

theorem Finset.truncatedSup_of_notMem E1 #

∀ {α : Type u_1} [inst : SemilatticeSup α] {s : Finset α} {a : α} [inst_1 : DecidableLE α] [inst_2 : OrderTop α],
  a ∉ lowerClosure ↑s → s.truncatedSup a = ⊤

theorem Finset.truncatedSup_empty E0 #

∀ {α : Type u_1} [inst : SemilatticeSup α] [inst_1 : DecidableLE α] [inst_2 : OrderTop α] (a : α), ∅.truncatedSup a = ⊤

theorem Finset.truncatedSup_singleton E0 #

∀ {α : Type u_1} [inst : SemilatticeSup α] [inst_1 : DecidableLE α] [inst_2 : OrderTop α] (b a : α),
  {b}.truncatedSup a = if a ≤ b then b else ⊤

theorem Finset.le_truncatedSup E1 #

∀ {α : Type u_1} [inst : SemilatticeSup α] {s : Finset α} {a : α} [inst_1 : DecidableLE α] [inst_2 : OrderTop α],
  a ≤ s.truncatedSup a

theorem Finset.map_truncatedSup E0 #

∀ {α : Type u_1} {β : Type u_2} [inst : SemilatticeSup α] [inst_1 : SemilatticeSup β] [inst_2 : BoundedOrder β]
  [inst_3 : DecidableLE α] [inst_4 : OrderTop α] [inst_5 : DecidableLE β] (e : α ≃o β) (s : Finset α) (a : α),
  e (s.truncatedSup a) = (Finset.map e.toEmbedding s).truncatedSup (e a)

theorem Finset.truncatedSup_of_isAntichain E1 #

∀ {α : Type u_1} [inst : SemilatticeSup α] {s : Finset α} {a : α} [inst_1 : DecidableLE α] [inst_2 : OrderTop α],
  IsAntichain (fun x1 x2 ↦ x1 ≤ x2) ↑s → a ∈ s → s.truncatedSup a = a

theorem Finset.truncatedSup_union E1 #

∀ {α : Type u_1} [inst : SemilatticeSup α] {s t : Finset α} {a : α} [inst_1 : DecidableLE α] [inst_2 : OrderTop α]
  [inst_3 : DecidableEq α],
  a ∈ lowerClosure ↑s → a ∈ lowerClosure ↑t → (s ∪ t).truncatedSup a = s.truncatedSup a ⊔ t.truncatedSup a

theorem Finset.truncatedSup_union_left E1 #

∀ {α : Type u_1} [inst : SemilatticeSup α] {s t : Finset α} {a : α} [inst_1 : DecidableLE α] [inst_2 : OrderTop α]
  [inst_3 : DecidableEq α], a ∈ lowerClosure ↑s → a ∉ lowerClosure ↑t → (s ∪ t).truncatedSup a = s.truncatedSup a

theorem Finset.truncatedSup_union_right E1 #

∀ {α : Type u_1} [inst : SemilatticeSup α] {s t : Finset α} {a : α} [inst_1 : DecidableLE α] [inst_2 : OrderTop α]
  [inst_3 : DecidableEq α], a ∉ lowerClosure ↑s → a ∈ lowerClosure ↑t → (s ∪ t).truncatedSup a = t.truncatedSup a

theorem Finset.truncatedSup_union_of_notMem E1 #

∀ {α : Type u_1} [inst : SemilatticeSup α] {s t : Finset α} {a : α} [inst_1 : DecidableLE α] [inst_2 : OrderTop α]
  [inst_3 : DecidableEq α], a ∉ lowerClosure ↑s → a ∉ lowerClosure ↑t → (s ∪ t).truncatedSup a = ⊤

def Finset.truncatedInf E3 #

{α : Type u_1} → [inst : SemilatticeInf α] → [DecidableLE α] → [BoundedOrder α] → Finset α → α → α

The infimum of the elements of s less than a if there are some, otherwise ⊥.

theorem Finset.truncatedInf_of_mem E1 #

∀ {α : Type u_1} [inst : SemilatticeInf α] {s : Finset α} {a : α} [inst_1 : DecidableLE α] [inst_2 : BoundedOrder α]
  (h : a ∈ upperClosure ↑s), s.truncatedInf a = {b ∈ s | b ≤ a}.inf' ⋯ id

theorem Finset.truncatedInf_of_notMem E1 #

∀ {α : Type u_1} [inst : SemilatticeInf α] {s : Finset α} {a : α} [inst_1 : DecidableLE α] [inst_2 : BoundedOrder α],
  a ∉ upperClosure ↑s → s.truncatedInf a = ⊥

theorem Finset.truncatedInf_le E1 #

∀ {α : Type u_1} [inst : SemilatticeInf α] {s : Finset α} {a : α} [inst_1 : DecidableLE α] [inst_2 : BoundedOrder α],
  s.truncatedInf a ≤ a

theorem Finset.truncatedInf_empty E0 #

∀ {α : Type u_1} [inst : SemilatticeInf α] [inst_1 : DecidableLE α] [inst_2 : BoundedOrder α] (a : α),
  ∅.truncatedInf a = ⊥

theorem Finset.truncatedInf_singleton E0 #

∀ {α : Type u_1} [inst : SemilatticeInf α] [inst_1 : DecidableLE α] [inst_2 : BoundedOrder α] (b a : α),
  {b}.truncatedInf a = if b ≤ a then b else ⊥

theorem Finset.map_truncatedInf E0 #

∀ {α : Type u_1} {β : Type u_2} [inst : SemilatticeInf α] [inst_1 : SemilatticeInf β] [inst_2 : BoundedOrder β]
  [inst_3 : DecidableLE β] [inst_4 : DecidableLE α] [inst_5 : BoundedOrder α] (e : α ≃o β) (s : Finset α) (a : α),
  e (s.truncatedInf a) = (Finset.map e.toEmbedding s).truncatedInf (e a)

theorem Finset.truncatedInf_of_isAntichain E1 #

∀ {α : Type u_1} [inst : SemilatticeInf α] {s : Finset α} {a : α} [inst_1 : DecidableLE α] [inst_2 : BoundedOrder α],
  IsAntichain (fun x1 x2 ↦ x1 ≤ x2) ↑s → a ∈ s → s.truncatedInf a = a

theorem Finset.truncatedInf_union E1 #

∀ {α : Type u_1} [inst : SemilatticeInf α] {s t : Finset α} {a : α} [inst_1 : DecidableLE α] [inst_2 : BoundedOrder α]
  [inst_3 : DecidableEq α],
  a ∈ upperClosure ↑s → a ∈ upperClosure ↑t → (s ∪ t).truncatedInf a = s.truncatedInf a ⊓ t.truncatedInf a

theorem Finset.truncatedInf_union_left E1 #

∀ {α : Type u_1} [inst : SemilatticeInf α] {s t : Finset α} {a : α} [inst_1 : DecidableLE α] [inst_2 : BoundedOrder α]
  [inst_3 : DecidableEq α], a ∈ upperClosure ↑s → a ∉ upperClosure ↑t → (s ∪ t).truncatedInf a = s.truncatedInf a

theorem Finset.truncatedInf_union_right E1 #

∀ {α : Type u_1} [inst : SemilatticeInf α] {s t : Finset α} {a : α} [inst_1 : DecidableLE α] [inst_2 : BoundedOrder α]
  [inst_3 : DecidableEq α], a ∉ upperClosure ↑s → a ∈ upperClosure ↑t → (s ∪ t).truncatedInf a = t.truncatedInf a

theorem Finset.truncatedInf_union_of_notMem E1 #

∀ {α : Type u_1} [inst : SemilatticeInf α] {s t : Finset α} {a : α} [inst_1 : DecidableLE α] [inst_2 : BoundedOrder α]
  [inst_3 : DecidableEq α], a ∉ upperClosure ↑s → a ∉ upperClosure ↑t → (s ∪ t).truncatedInf a = ⊥

theorem Finset.truncatedSup_infs E1 #

∀ {α : Type u_1} [inst : DistribLattice α] [inst_1 : DecidableEq α] {s t : Finset α} {a : α} [inst_2 : DecidableLE α]
  [inst_3 : BoundedOrder α],
  a ∈ lowerClosure ↑s → a ∈ lowerClosure ↑t → (s ⊼ t).truncatedSup a = s.truncatedSup a ⊓ t.truncatedSup a

theorem Finset.truncatedInf_sups E1 #

∀ {α : Type u_1} [inst : DistribLattice α] [inst_1 : DecidableEq α] {s t : Finset α} {a : α} [inst_2 : DecidableLE α]
  [inst_3 : BoundedOrder α],
  a ∈ upperClosure ↑s → a ∈ upperClosure ↑t → (s ⊻ t).truncatedInf a = s.truncatedInf a ⊔ t.truncatedInf a

theorem Finset.truncatedSup_infs_of_notMem E1 #

∀ {α : Type u_1} [inst : DistribLattice α] [inst_1 : DecidableEq α] {s t : Finset α} {a : α} [inst_2 : DecidableLE α]
  [inst_3 : BoundedOrder α], a ∉ lowerClosure ↑s ⊓ lowerClosure ↑t → (s ⊼ t).truncatedSup a = ⊤

theorem Finset.truncatedInf_sups_of_notMem E1 #

∀ {α : Type u_1} [inst : DistribLattice α] [inst_1 : DecidableEq α] {s t : Finset α} {a : α} [inst_2 : DecidableLE α]
  [inst_3 : BoundedOrder α], a ∉ upperClosure ↑s ⊔ upperClosure ↑t → (s ⊻ t).truncatedInf a = ⊥

theorem Finset.compl_truncatedSup E0 #

∀ {α : Type u_1} [inst : BooleanAlgebra α] [inst_1 : DecidableLE α] (s : Finset α) (a : α),
  (s.truncatedSup a)ᶜ = s.compls.truncatedInf aᶜ

theorem Finset.compl_truncatedInf E0 #

∀ {α : Type u_1} [inst : BooleanAlgebra α] [inst_1 : DecidableLE α] (s : Finset α) (a : α),
  (s.truncatedInf a)ᶜ = s.compls.truncatedSup aᶜ

theorem Finset.card_truncatedSup_union_add_card_truncatedSup_infs E1 #

∀ {α : Type u_1} [inst : DecidableEq α] [inst_1 : Fintype α] (𝒜 ℬ : Finset (Finset α)) (s : Finset α),
  ((𝒜 ∪ ℬ).truncatedSup s).card + ((𝒜 ⊼ ℬ).truncatedSup s).card = (𝒜.truncatedSup s).card + (ℬ.truncatedSup s).card

theorem Finset.card_truncatedInf_union_add_card_truncatedInf_sups E1 #

∀ {α : Type u_1} [inst : DecidableEq α] [inst_1 : Fintype α] (𝒜 ℬ : Finset (Finset α)) (s : Finset α),
  ((𝒜 ∪ ℬ).truncatedInf s).card + ((𝒜 ⊻ ℬ).truncatedInf s).card = (𝒜.truncatedInf s).card + (ℬ.truncatedInf s).card

def AhlswedeZhang.infSum E3 #

{α : Type u_1} → [Fintype α] → [DecidableEq α] → Finset (Finset α) → ℚ

Weighted sum of the size of the truncated infima of a set family. Relevant to the Ahlswede-Zhang identity.

def AhlswedeZhang.supSum E1 #

{α : Type u_1} → [Fintype α] → [DecidableEq α] → Finset (Finset α) → ℚ

Weighted sum of the size of the truncated suprema of a set family. Relevant to the Ahlswede-Zhang identity.

theorem AhlswedeZhang.supSum_union_add_supSum_infs E1 #

∀ {α : Type u_1} [inst : Fintype α] [inst_1 : DecidableEq α] (𝒜 ℬ : Finset (Finset α)),
  AhlswedeZhang.supSum (𝒜 ∪ ℬ) + AhlswedeZhang.supSum (𝒜 ⊼ ℬ) = AhlswedeZhang.supSum 𝒜 + AhlswedeZhang.supSum ℬ

theorem AhlswedeZhang.infSum_union_add_infSum_sups E1 #

∀ {α : Type u_1} [inst : Fintype α] [inst_1 : DecidableEq α] (𝒜 ℬ : Finset (Finset α)),
  AhlswedeZhang.infSum (𝒜 ∪ ℬ) + AhlswedeZhang.infSum (𝒜 ⊻ ℬ) = AhlswedeZhang.infSum 𝒜 + AhlswedeZhang.infSum ℬ

theorem AhlswedeZhang.IsAntichain.le_infSum E1 #

∀ {α : Type u_1} [inst : Fintype α] [inst_1 : DecidableEq α] {𝒜 : Finset (Finset α)},
  IsAntichain (fun x1 x2 ↦ x1 ⊆ x2) ↑𝒜 → ∅ ∉ 𝒜 → ∑ s ∈ 𝒜, (↑((Fintype.card α).choose s.card))⁻¹ ≤ AhlswedeZhang.infSum 𝒜

theorem AhlswedeZhang.supSum_singleton E0 #

∀ {α : Type u_1} [inst : Fintype α] [inst_1 : DecidableEq α] {s : Finset α} [Nonempty α],
  s ≠ Finset.univ → AhlswedeZhang.supSum {s} = ↑(Fintype.card α) * ∑ k ∈ Finset.range (Fintype.card α), (↑k)⁻¹

theorem AhlswedeZhang.infSum_compls_add_supSum E1 #

∀ {α : Type u_1} [inst : Fintype α] [inst_1 : DecidableEq α] [Nonempty α] (𝒜 : Finset (Finset α)),
  AhlswedeZhang.infSum 𝒜.compls + AhlswedeZhang.supSum 𝒜 =
    ↑(Fintype.card α) * ∑ k ∈ Finset.range (Fintype.card α), (↑k)⁻¹ + 1

The Ahlswede-Zhang Identity.

theorem AhlswedeZhang.supSum_of_univ_notMem E1 #

∀ {α : Type u_1} [inst : Fintype α] [inst_1 : DecidableEq α] {𝒜 : Finset (Finset α)} [Nonempty α],
  𝒜.Nonempty →
    Finset.univ ∉ 𝒜 → AhlswedeZhang.supSum 𝒜 = ↑(Fintype.card α) * ∑ k ∈ Finset.range (Fintype.card α), (↑k)⁻¹

theorem AhlswedeZhang.infSum_eq_one E3 #

∀ {α : Type u_1} [inst : Fintype α] [inst_1 : DecidableEq α] {𝒜 : Finset (Finset α)} [Nonempty α],
  𝒜.Nonempty → ∅ ∉ 𝒜 → AhlswedeZhang.infSum 𝒜 = 1

The Ahlswede-Zhang Identity.