The areas / V30. Combinatorics
Mathlib.Combinatorics.SetFamily.Compression.UV
30 declarations. Mathlib docs · Source
UV-compressions
This file defines UV-compression. It is an operation on a set family that reduces its shadow.
UV-compressing a : α along u v : α means replacing a by (a ⊔ u) \ v if a and u are
disjoint and v ≤ a. In some sense, it's moving a from v to u.
UV-compressions are immensely useful to prove the Kruskal-Katona theorem. The idea is that compressing a set family might decrease the size of its shadow, so iterated compressions hopefully minimise the shadow.
Main declarations
UV.compress:compress u v aisacompressed alonguandv.UV.compression:compression u v sis the compression of the set familysalonguandv. It is the compressions of the elements ofswhose compression is not already insalong with the element whose compression is already ins. This way of splitting into what moves and what does not ensures the compression doesn't squash the set family, which is proved byUV.card_compression.UV.card_shadow_compression_le: Compressing reduces the size of the shadow. This is a key fact in the proof of Kruskal-Katona.
Notation
𝓒 (typed with \MCC) is notation for UV.compression in scope FinsetFamily.
Notes
Even though our emphasis is on Finset α, we define UV-compressions more generally in a generalized
Boolean algebra, so that one can use it for Set α.
References
- https://github.com/b-mehta/maths-notes/blob/master/iii/mich/combinatorics.pdf
Tags
compression, UV-compression, shadow
UV-compression in generalized Boolean algebras
UV-compression on finsets
theorem UV.IsCompressed.congr_simp E1 #
∀ {α : Type u_1} [inst : GeneralizedBooleanAlgebra α] {inst_1 : DecidableRel Disjoint} [inst_2 : DecidableRel Disjoint]
{inst_3 : DecidableLE α} [inst_4 : DecidableLE α] {inst_5 : DecidableEq α} [inst_6 : DecidableEq α] (u u_1 : α),
u = u_1 → ∀ (v v_1 : α), v = v_1 → ∀ (s s_1 : Finset α), s = s_1 → UV.IsCompressed u v s = UV.IsCompressed u_1 v_1 s_1
theorem sup_sdiff_injOn E1 #
∀ {α : Type u_1} [inst : GeneralizedBooleanAlgebra α] (u v : α),
Set.InjOn (fun x ↦ (x ⊔ u) \ v) {x | Disjoint u x ∧ v ≤ x}
UV-compression is injective on the elements it moves. See UV.compress.
def UV.compress E3 #
{α : Type u_1} → [inst : GeneralizedBooleanAlgebra α] → [DecidableRel Disjoint] → [DecidableLE α] → α → α → α → α
UV-compressing a means removing v from it and adding u if a and u are disjoint and
v ≤ a (it replaces the v part of a by the u part). Else, UV-compressing a doesn't do
anything. This is most useful when u and v are disjoint finsets of the same size.
theorem UV.compress_of_disjoint_of_le E1 #
∀ {α : Type u_1} [inst : GeneralizedBooleanAlgebra α] [inst_1 : DecidableRel Disjoint] [inst_2 : DecidableLE α]
{u v a : α}, Disjoint u a → v ≤ a → UV.compress u v a = (a ⊔ u) \ v
theorem UV.compress_of_disjoint_of_le' E1 #
∀ {α : Type u_1} [inst : GeneralizedBooleanAlgebra α] [inst_1 : DecidableRel Disjoint] [inst_2 : DecidableLE α]
{u v a : α}, Disjoint v a → u ≤ a → UV.compress u v ((a ⊔ v) \ u) = a
theorem UV.compress_self E0 #
∀ {α : Type u_1} [inst : GeneralizedBooleanAlgebra α] [inst_1 : DecidableRel Disjoint] [inst_2 : DecidableLE α]
(u a : α), UV.compress u u a = a
theorem UV.compress_sdiff_sdiff E0 #
∀ {α : Type u_1} [inst : GeneralizedBooleanAlgebra α] [inst_1 : DecidableRel Disjoint] [inst_2 : DecidableLE α]
(a b : α), UV.compress (a \ b) (b \ a) b = a
An element can be compressed to any other element by removing/adding the differences.
theorem UV.compress_idem E0 #
∀ {α : Type u_1} [inst : GeneralizedBooleanAlgebra α] [inst_1 : DecidableRel Disjoint] [inst_2 : DecidableLE α]
(u v a : α), UV.compress u v (UV.compress u v a) = UV.compress u v a
Compressing an element is idempotent.
def UV.compression E3 #
{α : Type u_1} →
[inst : GeneralizedBooleanAlgebra α] →
[DecidableRel Disjoint] → [DecidableLE α] → [DecidableEq α] → α → α → Finset α → Finset α
To UV-compress a set family, we compress each of its elements, except that we don't want to reduce the cardinality, so we keep all elements whose compression is already present.
def FinsetFamily.term𝓒 E1 #
Lean.ParserDescr
To UV-compress a set family, we compress each of its elements, except that we don't want to reduce the cardinality, so we keep all elements whose compression is already present.
def UV.IsCompressed E1 #
{α : Type u_1} →
[inst : GeneralizedBooleanAlgebra α] →
[DecidableRel Disjoint] → [DecidableLE α] → [DecidableEq α] → α → α → Finset α → Prop
IsCompressed u v s expresses that s is UV-compressed.
theorem UV.compress_injOn E1 #
∀ {α : Type u_1} [inst : GeneralizedBooleanAlgebra α] [inst_1 : DecidableRel Disjoint] [inst_2 : DecidableLE α]
{s : Finset α} {u v : α} [inst_3 : DecidableEq α], Set.InjOn (UV.compress u v) ↑({a ∈ s | UV.compress u v a ∉ s})
UV-compression is injective on the sets that are not UV-compressed.
theorem UV.mem_compression E0 #
∀ {α : Type u_1} [inst : GeneralizedBooleanAlgebra α] [inst_1 : DecidableRel Disjoint] [inst_2 : DecidableLE α]
{s : Finset α} {u v a : α} [inst_3 : DecidableEq α],
a ∈ UV.compression u v s ↔ a ∈ s ∧ UV.compress u v a ∈ s ∨ a ∉ s ∧ ∃ b ∈ s, UV.compress u v b = a
a is in the UV-compressed family iff it's in the original and its compression is in the
original, or it's not in the original but it's the compression of something in the original.
theorem UV.IsCompressed.eq E1 #
∀ {α : Type u_1} [inst : GeneralizedBooleanAlgebra α] [inst_1 : DecidableRel Disjoint] [inst_2 : DecidableLE α]
{s : Finset α} {u v : α} [inst_3 : DecidableEq α], UV.IsCompressed u v s → UV.compression u v s = s
theorem UV.compression_self E0 #
∀ {α : Type u_1} [inst : GeneralizedBooleanAlgebra α] [inst_1 : DecidableRel Disjoint] [inst_2 : DecidableLE α]
[inst_3 : DecidableEq α] (u : α) (s : Finset α), UV.compression u u s = s
theorem UV.isCompressed_self E1 #
∀ {α : Type u_1} [inst : GeneralizedBooleanAlgebra α] [inst_1 : DecidableRel Disjoint] [inst_2 : DecidableLE α]
[inst_3 : DecidableEq α] (u : α) (s : Finset α), UV.IsCompressed u u s
Any family is compressed along two identical elements.
theorem UV.compress_disjoint E1 #
∀ {α : Type u_1} [inst : GeneralizedBooleanAlgebra α] [inst_1 : DecidableRel Disjoint] [inst_2 : DecidableLE α]
{s : Finset α} {u v : α} [inst_3 : DecidableEq α],
Disjoint ({a ∈ s | UV.compress u v a ∈ s}) ({a ∈ Finset.image (UV.compress u v) s | a ∉ s})
theorem UV.compress_mem_compression E1 #
∀ {α : Type u_1} [inst : GeneralizedBooleanAlgebra α] [inst_1 : DecidableRel Disjoint] [inst_2 : DecidableLE α]
{s : Finset α} {u v a : α} [inst_3 : DecidableEq α], a ∈ s → UV.compress u v a ∈ UV.compression u v s
theorem UV.compress_mem_compression_of_mem_compression E1 #
∀ {α : Type u_1} [inst : GeneralizedBooleanAlgebra α] [inst_1 : DecidableRel Disjoint] [inst_2 : DecidableLE α]
{s : Finset α} {u v a : α} [inst_3 : DecidableEq α],
a ∈ UV.compression u v s → UV.compress u v a ∈ UV.compression u v s
theorem UV.compression_idem E0 #
∀ {α : Type u_1} [inst : GeneralizedBooleanAlgebra α] [inst_1 : DecidableRel Disjoint] [inst_2 : DecidableLE α]
[inst_3 : DecidableEq α] (u v : α) (s : Finset α), UV.compression u v (UV.compression u v s) = UV.compression u v s
Compressing a family is idempotent.
theorem UV.card_compression E3 #
∀ {α : Type u_1} [inst : GeneralizedBooleanAlgebra α] [inst_1 : DecidableRel Disjoint] [inst_2 : DecidableLE α]
[inst_3 : DecidableEq α] (u v : α) (s : Finset α), (UV.compression u v s).card = s.card
Compressing a family doesn't change its size.
theorem UV.le_of_mem_compression_of_notMem E1 #
∀ {α : Type u_1} [inst : GeneralizedBooleanAlgebra α] [inst_1 : DecidableRel Disjoint] [inst_2 : DecidableLE α]
{s : Finset α} {u v a : α} [inst_3 : DecidableEq α], a ∈ UV.compression u v s → a ∉ s → u ≤ a
theorem UV.disjoint_of_mem_compression_of_notMem E1 #
∀ {α : Type u_1} [inst : GeneralizedBooleanAlgebra α] [inst_1 : DecidableRel Disjoint] [inst_2 : DecidableLE α]
{s : Finset α} {u v a : α} [inst_3 : DecidableEq α], a ∈ UV.compression u v s → a ∉ s → Disjoint v a
theorem UV.sup_sdiff_mem_of_mem_compression_of_notMem E1 #
∀ {α : Type u_1} [inst : GeneralizedBooleanAlgebra α] [inst_1 : DecidableRel Disjoint] [inst_2 : DecidableLE α]
{s : Finset α} {u v a : α} [inst_3 : DecidableEq α], a ∈ UV.compression u v s → a ∉ s → (a ⊔ v) \ u ∈ s
theorem UV.sup_sdiff_mem_of_mem_compression E1 #
∀ {α : Type u_1} [inst : GeneralizedBooleanAlgebra α] [inst_1 : DecidableRel Disjoint] [inst_2 : DecidableLE α]
{s : Finset α} {u v a : α} [inst_3 : DecidableEq α], a ∈ UV.compression u v s → v ≤ a → Disjoint u a → (a ⊔ u) \ v ∈ s
If a is in the family compression and can be compressed, then its compression is in the
original family.
theorem UV.mem_of_mem_compression E0 #
∀ {α : Type u_1} [inst : GeneralizedBooleanAlgebra α] [inst_1 : DecidableRel Disjoint] [inst_2 : DecidableLE α]
{s : Finset α} {u v a : α} [inst_3 : DecidableEq α], a ∈ UV.compression u v s → v ≤ a → (v = ⊥ → u = ⊥) → a ∈ s
If a is in the u, v-compression but v ≤ a, then a must have been in the original
family.
theorem UV.card_compress E1 #
∀ {α : Type u_1} [inst : DecidableEq α] {u v : Finset α},
u.card = v.card → ∀ (a : Finset α), (UV.compress u v a).card = a.card
Compressing a finset doesn't change its size.
theorem Set.Sized.uvCompression E1 #
∀ {α : Type u_1} [inst : DecidableEq α] {𝒜 : Finset (Finset α)} {u v : Finset α} {r : ℕ},
u.card = v.card → Set.Sized r ↑𝒜 → Set.Sized r ↑(UV.compression u v 𝒜)
theorem UV.shadow_compression_subset_compression_shadow E1 #
∀ {α : Type u_1} [inst : DecidableEq α] {𝒜 : Finset (Finset α)} (u v : Finset α),
(∀ x ∈ u, ∃ y ∈ v, UV.IsCompressed (u.erase x) (v.erase y) 𝒜) →
(UV.compression u v 𝒜).shadow ⊆ UV.compression u v 𝒜.shadow
UV-compression reduces the size of the shadow of 𝒜 if, for all x ∈ u there is y ∈ v such
that 𝒜 is (u.erase x, v.erase y)-compressed. This is the key fact about compression for
Kruskal-Katona.
theorem UV.card_shadow_compression_le E3 #
∀ {α : Type u_1} [inst : DecidableEq α] {𝒜 : Finset (Finset α)} (u v : Finset α),
(∀ x ∈ u, ∃ y ∈ v, UV.IsCompressed (u.erase x) (v.erase y) 𝒜) → (UV.compression u v 𝒜).shadow.card ≤ 𝒜.shadow.card
UV-compression reduces the size of the shadow of 𝒜 if, for all x ∈ u there is y ∈ v
such that 𝒜 is (u.erase x, v.erase y)-compressed. This is the key UV-compression fact needed for
Kruskal-Katona.