Documentation

CslibFrontier.Algorithms.Lean.Matroid.Union

Edmonds' matroid union, partitioning, and base-packing theorems #

Given a finite family of matroids M : ι → Matroid α, a set I : Set α is union-independent (Cslib.Algorithms.Lean.Matroid.IsUnionIndep) when I = ⋃ i, f i for sets f i independent in M i. On finite subsets (and everywhere when the ground sets (M i).E are finite), this predicate forms the finitary matroid Cslib.Algorithms.Lean.Matroid.matroidUnion M.

The proofs reduce matroid union to Edmonds' matroid intersection theorem (CslibFrontier.Algorithms.Lean.Matroid.Intersection) between the disjoint sum Matroid.sum' M and the unit-capacity partition matroid unitPartitionMatroid Prod.snd on ι × α:

Main definitions #

Main results #

References #

def Cslib.Algorithms.Lean.Matroid.IsUnionIndep {ι : Type u_1} {α : Type u_2} (M : ι → Matroid α) (I : Set α) :

I : Set α is union-independent for M : ι → Matroid α when it equals ⋃ i, f i for subsets f i independent in M i.

@[simp]
theorem Cslib.Algorithms.Lean.Matroid.isUnionIndep_empty {ι : Type u_1} {α : Type u_2} (M : ι → Matroid α) :

The empty set is union-independent for any family of matroids.

theorem Cslib.Algorithms.Lean.Matroid.IsUnionIndep.subset {ι : Type u_1} {α : Type u_2} {M : ι → Matroid α} {I J : Set α} (hJ : IsUnionIndep M J) (hIJ : I ⊆ J) :

Union-independence is downward closed under inclusion.

theorem Cslib.Algorithms.Lean.Matroid.IsUnionIndep.subset_ground {ι : Type u_1} {α : Type u_2} {M : ι → Matroid α} {I : Set α} (hI : IsUnionIndep M I) :
I ⊆ ⋃ (i : ι), (M i).E

Every union-independent set lies inside the union of the ground sets (M i).E.

theorem Cslib.Algorithms.Lean.Matroid.IsUnionIndep.encard_le_encard_sdiff_add_sum_eRk {ι : Type u_1} {α : Type u_2} [Fintype ι] {M : ι → Matroid α} {X I : Set α} (hI : IsUnionIndep M I) (hIX : I ⊆ X) (T : Set α) :
I.encard ≤ (X \ T).encard + ∑ i : ι, (M i).eRk T

Weak duality for matroid union: any union-independent subset I ⊆ X satisfies I.encard ≤ (X \ T).encard + ∑ i, (M i).eRk T for every T : Set α.

noncomputable def Cslib.Algorithms.Lean.Matroid.matroidUnion {ι : Type u_1} {α : Type u_2} [Finite ι] (M : ι → Matroid α) :

The finitary matroid union of a finite family M : ι → Matroid α on ground set ⋃ i, (M i).E, whose independent sets are those whose finite subsets are IsUnionIndep M. On all finite subsets (and everywhere when all M i have finite ground sets), independence in matroidUnion M coincides with IsUnionIndep M.

@[simp]
theorem Cslib.Algorithms.Lean.Matroid.matroidUnion_ground {ι : Type u_1} {α : Type u_2} [Finite ι] (M : ι → Matroid α) :
(matroidUnion M).E = ⋃ (i : ι), (M i).E

The ground set of matroidUnion M is ⋃ i, (M i).E.

theorem Cslib.Algorithms.Lean.Matroid.matroidUnion_indep_iff_of_finite {ι : Type u_1} {α : Type u_2} [Finite ι] (M : ι → Matroid α) {I : Set α} (hI : I.Finite) :

On finite sets I : Set α, independence in matroidUnion M coincides with IsUnionIndep M I.

theorem Cslib.Algorithms.Lean.Matroid.matroidUnion_indep_iff {ι : Type u_1} {α : Type u_2} [Finite ι] (M : ι → Matroid α) [∀ (i : ι), (M i).Finite] {I : Set α} :

When every M i is a finite matroid, (matroidUnion M).Indep I ↔ IsUnionIndep M I holds for all sets I : Set α.

theorem Cslib.Algorithms.Lean.Matroid.exists_isUnionIndep_card_eq {ι : Type u_1} {α : Type u_2} [Fintype ι] [DecidableEq α] (M : ι → Matroid α) (S : Finset α) :
∃ (I : Finset α) (T : Finset α), I ⊆ S ∧ T ⊆ S ∧ IsUnionIndep M ↑I ∧ ↑I.card = ↑(S \ T).card + ∑ i : ι, (M i).eRk ↑T

Edmonds' matroid union theorem (witness form; [Sch17]; [Sch03]): for a finite family M : ι → Matroid α and a finite set S : Finset α, some union-independent subset I ⊆ S and subset T ⊆ S attain equality in weak duality: (I.card : ℕ∞) = (S \ T).card + ∑ i : ι, (M i).eRk ↑T.

theorem Cslib.Algorithms.Lean.Matroid.matroidUnion_eRk_eq_iInf {ι : Type u_1} {α : Type u_2} [Fintype ι] (M : ι → Matroid α) {X : Set α} (hX : X.Finite) :
(matroidUnion M).eRk X = ⨅ (T : Set α), ⨅ (_ : T ⊆ X), (X \ T).encard + ∑ i : ι, (M i).eRk T

Edmonds' matroid union rank theorem ([Sch17]; [Sch03]): for any finite family M : ι → Matroid α and finite set X : Set α, the rank (matroidUnion M).eRk X equals ⨅ T ⊆ X, (X \ T).encard + ∑ i, (M i).eRk T.

theorem Cslib.Algorithms.Lean.Matroid.iSup_encard_isUnionIndep_eq_iInf {ι : Type u_1} {α : Type u_2} [Fintype ι] (M : ι → Matroid α) {X : Set α} (hX : X.Finite) :
⨆ (I : Set α), ⨆ (_ : I ⊆ X ∧ IsUnionIndep M I), I.encard = ⨅ (T : Set α), ⨅ (_ : T ⊆ X), (X \ T).encard + ∑ i : ι, (M i).eRk T

Edmonds' matroid union min–max theorem (sup–inf form; [Sch17]; [Sch03]): for any finite family M : ι → Matroid α and finite set X : Set α, the maximum cardinality of a union-independent subset of X equals ⨅ T ⊆ X, (X \ T).encard + ∑ i, (M i).eRk T.

theorem Cslib.Algorithms.Lean.Matroid.exists_partition_indep_iff {ι : Type u_1} {α : Type u_2} [Fintype ι] [DecidableEq α] (M : ι → Matroid α) (S : Finset α) :
(∃ (P : ι → Finset α), (∀ (i : ι), (M i).Indep ↑(P i)) ∧ Pairwise (Function.onFun Disjoint P) ∧ Finset.univ.biUnion P = S) ↔ ∀ T ⊆ S, ↑T.card ≤ ∑ i : ι, (M i).eRk ↑T

Edmonds–Fulkerson matroid partitioning theorem ([Sch17]; [Sch03]): a finite set S : Finset α can be partitioned into pairwise disjoint sets P i with (M i).Indep (P i : Set α) if and only if (T.card : ℕ∞) ≤ ∑ i : ι, (M i).eRk ↑T for every T ⊆ S.

theorem Cslib.Algorithms.Lean.Matroid.exists_partition_indep_const_iff {α : Type u_2} [DecidableEq α] (M : Matroid α) (k : ℕ) (S : Finset α) :
(∃ (P : Fin k → Finset α), (∀ (i : Fin k), M.Indep ↑(P i)) ∧ Pairwise (Function.onFun Disjoint P) ∧ Finset.univ.biUnion P = S) ↔ ∀ T ⊆ S, ↑T.card ≤ ↑k * M.eRk ↑T

Edmonds' matroid covering / partitioning theorem ([Sch17]; [Sch03]): a finite set S : Finset α can be partitioned into k pairwise disjoint M-independent subsets if and only if (T.card : ℕ∞) ≤ k * M.eRk ↑T for every T ⊆ S.

theorem Cslib.Algorithms.Lean.Matroid.exists_disjoint_isBase_iff {α : Type u_2} (M : Matroid α) (hE : M.E.Finite) (k : ℕ) :
(∃ (B : Fin k → Set α), (∀ (i : Fin k), M.IsBase (B i)) ∧ Pairwise (Function.onFun Disjoint B)) ↔ ∀ T ⊆ M.E, ↑k * M.eRank ≤ (M.E \ T).encard + ↑k * M.eRk T

Edmonds' disjoint bases (base-packing) theorem ([Sch17]; [Sch03]): a finite matroid M : Matroid α (hE : M.E.Finite) admits k pairwise disjoint bases if and only if k * M.eRank ≤ (M.E \ T).encard + k * M.eRk T for every T ⊆ M.E.