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.Matroid.Dual

37 declarations and 1 deprecated aliases. Mathlib docs · Source

Matroid Duality

For a matroid M on ground set E, the collection of complements of the bases of M is the collection of bases of another matroid on E called the 'dual' of M. The map from M to its dual is an involution, interacts nicely with minors, and preserves many important matroid properties such as representability and connectivity.

This file defines the dual matroid M✶ of M, and gives associated API. The definition is in terms of its independent sets, using IndepMatroid.matroid.

We also define 'Co-independence' (independence in the dual) of a set as a predicate M.Coindep X. This is an abbreviation for M✶.Indep X, but has its own name for the sake of dot notation.

Main Definitions

  • M.Dual, written M✶, is the matroid on M.E which a set B ⊆ M.E is a base if and only if M.E \ B is a base for M.

  • M.Coindep X means M✶.Indep X, or equivalently that X is contained in M.E \ B for some base B of M.

def Matroid.dualIndepMatroid E1 #

{α : Type u_1} → Matroid α → IndepMatroid α

Given M : Matroid α, the IndepMatroid α whose independent sets are the subsets of M.E that are disjoint from some base of M

theorem Matroid.dualIndepMatroid_E E0 #

∀ {α : Type u_1} (M : Matroid α), M.dualIndepMatroid.E = M.E

theorem Matroid.dualIndepMatroid_Indep E0 #

∀ {α : Type u_1} (M : Matroid α) (I : Set α), M.dualIndepMatroid.Indep I = (I ⊆ M.E ∧ ∃ B, M.IsBase B ∧ Disjoint I B)

def Matroid.dual E1 #

{α : Type u_1} → Matroid α → Matroid α

The dual of a matroid; the bases are the complements (w.r.t. M.E) of the bases of M.

def Matroid.«term_✶» E1 #

Lean.TrailingParserDescr

The ✶ symbol, which denotes matroid duality. (This is distinct from the usual * symbol for multiplication, due to precedence issues.)

theorem Matroid.dual_indep_iff_exists' E1 #

∀ {α : Type u_1} {M : Matroid α} {I : Set α}, M✶.Indep I ↔ I ⊆ M.E ∧ ∃ B, M.IsBase B ∧ Disjoint I B

theorem Matroid.dual_ground E0 #

∀ {α : Type u_1} {M : Matroid α}, M✶.E = M.E

theorem Matroid.dual_indep_iff_exists E1 #

∀ {α : Type u_1} {M : Matroid α} {I : Set α},
  autoParam (I ⊆ M.E) Matroid.dual_indep_iff_exists._auto_1 → (M✶.Indep I ↔ ∃ B, M.IsBase B ∧ Disjoint I B)

theorem Matroid.dual_dep_iff_forall E1 #

∀ {α : Type u_1} {M : Matroid α} {I : Set α}, M✶.Dep I ↔ (∀ (B : Set α), M.IsBase B → (I ∩ B).Nonempty) ∧ I ⊆ M.E

instance Matroid.dual_finite E0 #

∀ {α : Type u_1} {M : Matroid α} [M.Finite], M✶.Finite

instance Matroid.dual_nonempty E0 #

∀ {α : Type u_1} {M : Matroid α} [M.Nonempty], M✶.Nonempty

theorem Matroid.dual_isBase_iff E0 #

∀ {α : Type u_1} {M : Matroid α} {B : Set α},
  autoParam (B ⊆ M.E) Matroid.dual_isBase_iff._auto_1 → (M✶.IsBase B ↔ M.IsBase (M.E \ B))

theorem Matroid.dual_isBase_iff' E1 #

∀ {α : Type u_1} {M : Matroid α} {B : Set α}, M✶.IsBase B ↔ M.IsBase (M.E \ B) ∧ B ⊆ M.E

theorem Matroid.setOfPred_dual_isBase_eq E0 #

∀ {α : Type u_1} {M : Matroid α}, {B | M✶.IsBase B} = (fun X ↦ M.E \ X) '' {B | M.IsBase B}

theorem Matroid.dual_dual E0 #

∀ {α : Type u_1} (M : Matroid α), M✶✶ = M

theorem Matroid.dual_involutive E1 #

∀ {α : Type u_1}, Function.Involutive Matroid.dual

theorem Matroid.dual_injective E1 #

∀ {α : Type u_1}, Function.Injective Matroid.dual

theorem Matroid.dual_inj E0 #

∀ {α : Type u_1} {M₁ M₂ : Matroid α}, M₁✶ = M₂✶ ↔ M₁ = M₂

theorem Matroid.IsBase.compl_isBase_of_dual E1 #

∀ {α : Type u_1} {M : Matroid α} {B : Set α}, M✶.IsBase B → M.IsBase (M.E \ B)

theorem Matroid.IsBase.compl_isBase_dual E1 #

∀ {α : Type u_1} {M : Matroid α} {B : Set α}, M.IsBase B → M✶.IsBase (M.E \ B)

theorem Matroid.IsBase.compl_inter_isBasis_of_inter_isBasis E1 #

∀ {α : Type u_1} {M : Matroid α} {B X : Set α},
  M.IsBase B → M.IsBasis (B ∩ X) X → M✶.IsBasis (M.E \ B ∩ (M.E \ X)) (M.E \ X)

theorem Matroid.IsBase.inter_isBasis_iff_compl_inter_isBasis_dual E1 #

∀ {α : Type u_1} {M : Matroid α} {B X : Set α},
  M.IsBase B →
    autoParam (X ⊆ M.E) Matroid.IsBase.inter_isBasis_iff_compl_inter_isBasis_dual._auto_1 →
      (M.IsBasis (B ∩ X) X ↔ M✶.IsBasis (M.E \ B ∩ (M.E \ X)) (M.E \ X))

theorem Matroid.base_iff_dual_isBase_compl E1 #

∀ {α : Type u_1} {M : Matroid α} {B : Set α},
  autoParam (B ⊆ M.E) Matroid.base_iff_dual_isBase_compl._auto_1 → (M.IsBase B ↔ M✶.IsBase (M.E \ B))

theorem Matroid.ground_not_isBase E1 #

∀ {α : Type u_1} (M : Matroid α) [h : M✶.RankPos], ¬M.IsBase M.E

theorem Matroid.IsBase.ssubset_ground E1 #

∀ {α : Type u_1} {M : Matroid α} {B : Set α} [h : M✶.RankPos], M.IsBase B → B ⊂ M.E

theorem Matroid.Indep.ssubset_ground E1 #

∀ {α : Type u_1} {M : Matroid α} {I : Set α} [h : M✶.RankPos], M.Indep I → I ⊂ M.E

abbrev Matroid.Coindep E1 #

{α : Type u_1} → Matroid α → Set α → Prop

A coindependent set of M is an independent set of the dual of M✶. we give it a separate definition to enable dot notation. Which spelling is better depends on context.

theorem Matroid.coindep_def E0 #

∀ {α : Type u_1} {M : Matroid α} {X : Set α}, M.Coindep X ↔ M✶.Indep X

theorem Matroid.Coindep.indep E1 #

∀ {α : Type u_1} {M : Matroid α} {X : Set α}, M.Coindep X → M✶.Indep X

theorem Matroid.dual_coindep_iff E0 #

∀ {α : Type u_1} {M : Matroid α} {X : Set α}, M✶.Coindep X ↔ M.Indep X

theorem Matroid.Indep.coindep E1 #

∀ {α : Type u_1} {M : Matroid α} {I : Set α}, M.Indep I → M✶.Coindep I

theorem Matroid.coindep_iff_exists' E1 #

∀ {α : Type u_1} {M : Matroid α} {X : Set α}, M.Coindep X ↔ (∃ B, M.IsBase B ∧ B ⊆ M.E \ X) ∧ X ⊆ M.E

theorem Matroid.coindep_iff_exists E1 #

∀ {α : Type u_1} {M : Matroid α} {X : Set α},
  autoParam (X ⊆ M.E) Matroid.coindep_iff_exists._auto_1 → (M.Coindep X ↔ ∃ B, M.IsBase B ∧ B ⊆ M.E \ X)

theorem Matroid.coindep_iff_subset_compl_isBase E1 #

∀ {α : Type u_1} {M : Matroid α} {X : Set α}, M.Coindep X ↔ ∃ B, M.IsBase B ∧ X ⊆ M.E \ B

theorem Matroid.Coindep.subset_ground E1 #

∀ {α : Type u_1} {M : Matroid α} {X : Set α}, M.Coindep X → X ⊆ M.E

theorem Matroid.Coindep.exists_isBase_subset_compl E1 #

∀ {α : Type u_1} {M : Matroid α} {X : Set α}, M.Coindep X → ∃ B, M.IsBase B ∧ B ⊆ M.E \ X

theorem Matroid.Coindep.exists_subset_compl_isBase E1 #

∀ {α : Type u_1} {M : Matroid α} {X : Set α}, M.Coindep X → ∃ B, M.IsBase B ∧ X ⊆ M.E \ B

Deprecated aliases

NameNew nameSince
Matroid.setOf_dual_isBase_eqMatroid.setOfPred_dual_isBase_eq2026-07-09