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

26 declarations. Mathlib docs · Source

Intersecting families

This file defines intersecting families and proves their basic properties.

Main declarations

  • Set.Intersecting: Predicate for a set of elements in a generalized Boolean algebra to be an intersecting family.
  • Set.Intersecting.card_le: An intersecting family can only take up to half the elements, because a and aᶜ cannot simultaneously be in it.
  • Set.Intersecting.is_max_iff_card_eq: Any maximal intersecting family takes up half the elements.
  • Set.IsIntersectingOf: Predicate stating that a family 𝒜 of finsets is L-intersecting, i.e., meaning the intersection size of every pair of distinct members of 𝒜 belongs to L ⊆ ℕ.

References

  • [D. J. Kleitman, Families of non-disjoint subsets][kleitman1966]

L-intersecting families

This section defines L-intersecting families and establishes their basic properties.

def Set.Intersecting E3 #

{α : Type u_1} → [inst : SemilatticeInf α] → [OrderBot α] → Set α → Prop

A set family is intersecting if every pair of elements is non-disjoint.

theorem Set.Intersecting.mono E1 #

∀ {α : Type u_1} [inst : SemilatticeInf α] [inst_1 : OrderBot α] {s t : Set α}, t ⊆ s → s.Intersecting → t.Intersecting

theorem Set.Intersecting.bot_notMem E1 #

∀ {α : Type u_1} [inst : SemilatticeInf α] [inst_1 : OrderBot α] {s : Set α}, s.Intersecting → ⊥ ∉ s

theorem Set.Intersecting.ne_bot E1 #

∀ {α : Type u_1} [inst : SemilatticeInf α] [inst_1 : OrderBot α] {s : Set α} {a : α}, s.Intersecting → a ∈ s → a ≠ ⊥

theorem Set.intersecting_empty E1 #

∀ {α : Type u_1} [inst : SemilatticeInf α] [inst_1 : OrderBot α], ∅.Intersecting

theorem Set.intersecting_singleton E0 #

∀ {α : Type u_1} [inst : SemilatticeInf α] [inst_1 : OrderBot α] {a : α}, {a}.Intersecting ↔ a ≠ ⊥

theorem Set.Intersecting.insert E1 #

∀ {α : Type u_1} [inst : SemilatticeInf α] [inst_1 : OrderBot α] {s : Set α} {a : α},
  s.Intersecting → a ≠ ⊥ → (∀ b ∈ s, ¬Disjoint a b) → (insert a s).Intersecting

theorem Set.intersecting_insert E1 #

∀ {α : Type u_1} [inst : SemilatticeInf α] [inst_1 : OrderBot α] {s : Set α} {a : α},
  (insert a s).Intersecting ↔ s.Intersecting ∧ a ≠ ⊥ ∧ ∀ b ∈ s, ¬Disjoint a b

theorem Set.intersecting_iff_pairwise_not_disjoint E1 #

∀ {α : Type u_1} [inst : SemilatticeInf α] [inst_1 : OrderBot α] {s : Set α},
  s.Intersecting ↔ (s.Pairwise fun a b ↦ ¬Disjoint a b) ∧ s ≠ {⊥}

theorem Set.Subsingleton.intersecting E1 #

∀ {α : Type u_1} [inst : SemilatticeInf α] [inst_1 : OrderBot α] {s : Set α},
  s.Subsingleton → (s.Intersecting ↔ s ≠ {⊥})

theorem Set.intersecting_iff_eq_empty_of_subsingleton E1 #

∀ {α : Type u_1} [inst : SemilatticeInf α] [inst_1 : OrderBot α] [Subsingleton α] (s : Set α), s.Intersecting ↔ s = ∅

theorem Set.Intersecting.isUpperSet E1 #

∀ {α : Type u_1} [inst : SemilatticeInf α] [inst_1 : OrderBot α] {s : Set α},
  s.Intersecting → (∀ (t : Set α), t.Intersecting → s ⊆ t → s = t) → IsUpperSet s

Maximal intersecting families are upper sets.

theorem Set.Intersecting.isUpperSet' E1 #

∀ {α : Type u_1} [inst : SemilatticeInf α] [inst_1 : OrderBot α] {s : Finset α},
  (↑s).Intersecting → (∀ (t : Finset α), (↑t).Intersecting → s ⊆ t → s = t) → IsUpperSet ↑s

Maximal intersecting families are upper sets. Finset version.

theorem Set.Intersecting.exists_mem_set E1 #

∀ {α : Type u_1} {𝒜 : Set (Set α)}, 𝒜.Intersecting → ∀ {s t : Set α}, s ∈ 𝒜 → t ∈ 𝒜 → ∃ a ∈ s, a ∈ t

theorem Set.Intersecting.exists_mem_finset E1 #

∀ {α : Type u_1} [inst : DecidableEq α] {𝒜 : Set (Finset α)},
  𝒜.Intersecting → ∀ {s t : Finset α}, s ∈ 𝒜 → t ∈ 𝒜 → ∃ a ∈ s, a ∈ t

theorem Set.Intersecting.compl_notMem E1 #

∀ {α : Type u_1} [inst : BooleanAlgebra α] {s : Set α}, s.Intersecting → ∀ {a : α}, a ∈ s → aᶜ ∉ s

theorem Set.Intersecting.notMem E1 #

∀ {α : Type u_1} [inst : BooleanAlgebra α] {s : Set α}, s.Intersecting → ∀ {a : α}, aᶜ ∈ s → a ∉ s

theorem Set.Intersecting.disjoint_map_compl E1 #

∀ {α : Type u_1} [inst : BooleanAlgebra α] {s : Finset α},
  (↑s).Intersecting → Disjoint s (Finset.map { toFun := compl, inj' := ⋯ } s)

theorem Set.Intersecting.card_le E3 #

∀ {α : Type u_1} [inst : BooleanAlgebra α] [inst_1 : Fintype α] {s : Finset α},
  (↑s).Intersecting → 2 * s.card ≤ Fintype.card α

theorem Set.Intersecting.is_max_iff_card_eq E3 #

∀ {α : Type u_1} [inst : BooleanAlgebra α] [Nontrivial α] [inst_2 : Fintype α] {s : Finset α},
  (↑s).Intersecting → ((∀ (t : Finset α), (↑t).Intersecting → s ⊆ t → s = t) ↔ 2 * s.card = Fintype.card α)

theorem Set.Intersecting.exists_card_eq E0 #

∀ {α : Type u_1} [inst : BooleanAlgebra α] [Nontrivial α] [inst_2 : Fintype α] {s : Finset α},
  (↑s).Intersecting → ∃ t, s ⊆ t ∧ 2 * t.card = Fintype.card α ∧ (↑t).Intersecting

def Set.IsIntersectingOf E3 #

{α : Type u_1} → [DecidableEq α] → Set ℕ → Set (Finset α) → Prop

A family 𝒜 of finite subsets of α is L-intersecting if the intersection size of every pair of distinct members of 𝒜 belongs to L ⊆ ℕ.

That is, for all s, t ∈ 𝒜 with s ≠ t, we have |(s ∩ t)| ∈ L.

theorem Set.IsIntersectingOf.mono E1 #

∀ {L L' : Set ℕ} {α : Type u_1} [inst : DecidableEq α] {𝒜 : Set (Finset α)},
  L ⊆ L' → L.IsIntersectingOf 𝒜 → L'.IsIntersectingOf 𝒜

An L-intersecting family is also L'-intersecting whenever L ⊆ L'.

theorem Set.IsIntersectingOf.anti E1 #

∀ {L : Set ℕ} {α : Type u_1} [inst : DecidableEq α] {𝒜 ℬ : Set (Finset α)},
  ℬ ⊆ 𝒜 → L.IsIntersectingOf 𝒜 → L.IsIntersectingOf ℬ

An L-intersecting family remains L-intersecting under restriction to any subfamily.

theorem Set.IsIntersectingOf.empty E0 #

∀ {L : Set ℕ} {α : Type u_1} [inst : DecidableEq α], L.IsIntersectingOf ∅

The empty family of finite sets is L-intersecting, vacuously, because it contains no pairs of sets.

theorem Set.IsIntersectingOf.univ E0 #

∀ {α : Type u_1} [inst : DecidableEq α] {𝒜 : Set (Finset α)}, Set.univ.IsIntersectingOf 𝒜

Every family of finite sets is univ-intersecting.