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

175 declarations and 8 deprecated aliases. Mathlib docs · Source

Matroid loops and coloops

Loops

A 'loop' of a matroid M is an element e satisfying one of the following equivalent conditions:

  • e ∈ M.closure ∅;
  • {e} is dependent in M;
  • {e} is a circuit of M;
  • no base of M contains e.

In many mathematical contexts, loops can be thought of as 'trivial' or 'zero' elements; For linearly representable matroids, they correspond to the zero vector, and for graphic matroids, they correspond to edges incident with just one vertex (aka 'loops'). As trivial as they are, loops can be created from matroids with no loops by taking minors or duals, so in many contexts it is unreasonable to simply forbid loops from appearing. For M : Matroid α, this file defines a set Matroid.loops M : Set α, as well as predicates Matroid.IsLoop M : α → Prop and Matroid.IsNonloop M : α → Prop, and provides API for interacting with them.

Coloops

The dual notion of a loop is a 'coloop'. Geometrically, these can be thought of elements that are skew to the remainder of the matroid. Coloops in graphic matroids are 'bridge' edges of the graph, and coloops in linearly representable matroids are vectors not spanned by the other vectors in the matroid. Coloops also have many equivalent definitions in abstract matroid language; a coloop is an element of M.E if any of the following equivalent conditions holds :

  • e is a loop of M✶;
  • {e} is a cocircuit of M;
  • e is in no circuit of M;
  • e is in every base of M;
  • for all X ⊆ M.E, e ∈ X ↔ e ∈ M.closure X,
  • M.E \ {e} is nonspanning.

Main Declarations

For M : Matroid α:

  • M.loops is the set M.closure ∅.
  • M.IsLoop e means that e : α is a loop of M, defined as the statement e ∈ M.loops.
  • M.isLoop_tfae gives a number of properties that are equivalent to IsLoop.
  • M.IsNonloop e means that e ∈ M.E, but e is not a loop of M.
  • M.IsColoop e means that e is a loop of M✶.
  • M.coloops is the set of coloops of M✶.
  • M.isColoop_tfae gives a number of properties that are equivalent to IsColoop.
  • M.Loopless is a typeclass meaning M has no loops.
  • M.removeLoops is the matroid obtained from M by restricting to its set of nonloop elements.

def Matroid.loops E1 #

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

Matroid.loops M is the closure of the empty set.

theorem Matroid.loops_subset_ground E1 #

∀ {α : Type u_1} (M : Matroid α), M.loops ⊆ M.E

def Matroid.IsLoop E3 #

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

A 'loop' is a member of the closure of the empty set

theorem Matroid.isLoop_iff E0 #

∀ {α : Type u_1} {M : Matroid α} {e : α}, M.IsLoop e ↔ e ∈ M.loops

theorem Matroid.closure_empty E1 #

∀ {α : Type u_1} (M : Matroid α), M.closure ∅ = M.loops

theorem Matroid.IsLoop.mem_ground E0 #

∀ {α : Type u_1} {M : Matroid α} {e : α}, M.IsLoop e → e ∈ M.E

theorem Matroid.isLoop_tfae E1 #

∀ {α : Type u_1} (M : Matroid α) (e : α),
  [M.IsLoop e, e ∈ M.closure ∅, M.IsCircuit {e}, M.Dep {e}, ∀ ⦃B : Set α⦄, M.IsBase B → e ∈ M.E \ B].TFAE

theorem Matroid.singleton_dep E0 #

∀ {α : Type u_1} {M : Matroid α} {e : α}, M.Dep {e} ↔ M.IsLoop e

theorem Matroid.IsLoop.dep E1 #

∀ {α : Type u_1} {M : Matroid α} {e : α}, M.IsLoop e → M.Dep {e}

Alias of the reverse direction of Matroid.singleton_dep.

theorem Matroid.singleton_not_indep E1 #

∀ {α : Type u_1} {M : Matroid α} {e : α},
  autoParam (e ∈ M.E) Matroid.singleton_not_indep._auto_1 → (¬M.Indep {e} ↔ M.IsLoop e)

theorem Matroid.singleton_isCircuit E0 #

∀ {α : Type u_1} {M : Matroid α} {e : α}, M.IsCircuit {e} ↔ M.IsLoop e

theorem Matroid.IsLoop.isCircuit E1 #

∀ {α : Type u_1} {M : Matroid α} {e : α}, M.IsLoop e → M.IsCircuit {e}

Alias of the reverse direction of Matroid.singleton_isCircuit.

theorem Matroid.isLoop_iff_forall_mem_compl_isBase E1 #

∀ {α : Type u_1} {M : Matroid α} {e : α}, M.IsLoop e ↔ ∀ (B : Set α), M.IsBase B → e ∈ M.E \ B

theorem Matroid.isLoop_iff_forall_notMem_isBase E1 #

∀ {α : Type u_1} {M : Matroid α} {e : α},
  autoParam (e ∈ M.E) Matroid.isLoop_iff_forall_notMem_isBase._auto_1 → (M.IsLoop e ↔ ∀ (B : Set α), M.IsBase B → e ∉ B)

theorem Matroid.IsLoop.mem_closure E0 #

∀ {α : Type u_1} {M : Matroid α} {e : α}, M.IsLoop e → ∀ (X : Set α), e ∈ M.closure X

theorem Matroid.IsLoop.mem_of_isFlat E0 #

∀ {α : Type u_1} {M : Matroid α} {e : α}, M.IsLoop e → ∀ {F : Set α}, M.IsFlat F → e ∈ F

theorem Matroid.IsFlat.loops_subset E1 #

∀ {α : Type u_1} {M : Matroid α} {F : Set α}, M.IsFlat F → M.loops ⊆ F

theorem Matroid.IsLoop.dep_of_mem E1 #

∀ {α : Type u_1} {M : Matroid α} {e : α} {X : Set α},
  M.IsLoop e → e ∈ X → autoParam (X ⊆ M.E) Matroid.IsLoop.dep_of_mem._auto_1 → M.Dep X

theorem Matroid.IsLoop.not_indep_of_mem E1 #

∀ {α : Type u_1} {M : Matroid α} {e : α} {X : Set α}, M.IsLoop e → e ∈ X → ¬M.Indep X

theorem Matroid.IsLoop.notMem_of_indep E1 #

∀ {α : Type u_1} {M : Matroid α} {e : α} {I : Set α}, M.IsLoop e → M.Indep I → e ∉ I

theorem Matroid.Indep.disjoint_loops E1 #

∀ {α : Type u_1} {M : Matroid α} {I : Set α}, M.Indep I → Disjoint I M.loops

theorem Matroid.isBasis_loops_iff E0 #

∀ {α : Type u_1} {M : Matroid α} {I : Set α}, M.IsBasis I M.loops ↔ I = ∅

theorem Matroid.closure_eq_loops_of_subset E1 #

∀ {α : Type u_1} {M : Matroid α} {X : Set α}, X ⊆ M.loops → M.closure X = M.loops

theorem Matroid.isBasis_iff_empty_of_subset_loops E1 #

∀ {α : Type u_1} {M : Matroid α} {X I : Set α}, X ⊆ M.loops → (M.IsBasis I X ↔ I = ∅)

theorem Matroid.IsLoop.closure E1 #

∀ {α : Type u_1} {M : Matroid α} {e : α}, M.IsLoop e → M.closure {e} = M.loops

theorem Matroid.isLoop_iff_closure_eq_loops_and_mem_ground E1 #

∀ {α : Type u_1} {M : Matroid α} {e : α}, M.IsLoop e ↔ M.closure {e} = M.loops ∧ e ∈ M.E

theorem Matroid.isLoop_iff_closure_eq_loops E1 #

∀ {α : Type u_1} {M : Matroid α} {e : α},
  autoParam (e ∈ M.E) Matroid.isLoop_iff_closure_eq_loops._auto_1 → (M.IsLoop e ↔ M.closure {e} = M.loops)

theorem Matroid.closure_loops E0 #

∀ {α : Type u_1} (M : Matroid α), M.closure M.loops = M.loops

theorem Matroid.closure_union_loops_eq E0 #

∀ {α : Type u_1} (M : Matroid α) (X : Set α), M.closure (X ∪ M.loops) = M.closure X

theorem Matroid.closure_loops_union_eq E0 #

∀ {α : Type u_1} (M : Matroid α) (X : Set α), M.closure (M.loops ∪ X) = M.closure X

theorem Matroid.closure_sdiff_loops_eq E0 #

∀ {α : Type u_1} (M : Matroid α) (X : Set α), M.closure (X \ M.loops) = M.closure X

theorem Matroid.restrict_loops_eq' E1 #

∀ {α : Type u_1} (M : Matroid α) (R : Set α), (M.restrict R).loops = M.loops ∩ R ∪ R \ M.E

A version of restrict_loops_eq without the hypothesis that R ⊆ M.E

theorem Matroid.restrict_loops_eq E0 #

∀ {α : Type u_1} {M : Matroid α} {R : Set α}, R ⊆ M.E → (M.restrict R).loops = M.loops ∩ R

theorem Matroid.restrict_isLoop_iff E0 #

∀ {α : Type u_1} {M : Matroid α} {e : α} {R : Set α}, (M.restrict R).IsLoop e ↔ e ∈ R ∧ (M.IsLoop e ∨ e ∉ M.E)

theorem Matroid.IsRestriction.isLoop_iff E0 #

∀ {α : Type u_1} {M N : Matroid α} {e : α}, N.IsRestriction M → (N.IsLoop e ↔ e ∈ N.E ∧ M.IsLoop e)

theorem Matroid.IsLoop.of_isRestriction E1 #

∀ {α : Type u_1} {M N : Matroid α} {e : α}, N.IsLoop e → N.IsRestriction M → M.IsLoop e

theorem Matroid.IsLoop.isLoop_isRestriction E1 #

∀ {α : Type u_1} {M N : Matroid α} {e : α}, M.IsLoop e → N.IsRestriction M → e ∈ N.E → N.IsLoop e

theorem Matroid.map_loops E0 #

∀ {α : Type u_1} {β : Type u_2} {M : Matroid α} {f : α → β} {hf : Set.InjOn f M.E}, (M.map f hf).loops = f '' M.loops

theorem Matroid.map_isLoop_iff E0 #

∀ {α : Type u_1} {β : Type u_2} {M : Matroid α} {e : α} {f : α → β} {hf : Set.InjOn f M.E},
  autoParam (e ∈ M.E) Matroid.map_isLoop_iff._auto_1 → ((M.map f hf).IsLoop (f e) ↔ M.IsLoop e)

theorem Matroid.mapEmbedding_isLoop_iff E0 #

∀ {α : Type u_1} {β : Type u_2} {M : Matroid α} {e : α} {f : α ↪ β}, (M.mapEmbedding f).IsLoop (f e) ↔ M.IsLoop e

theorem Matroid.comap_loops E0 #

∀ {α : Type u_1} {β : Type u_2} {M : Matroid β} {f : α → β}, (M.comap f).loops = f ⁻¹' M.loops

theorem Matroid.comap_isLoop_iff E0 #

∀ {α : Type u_1} {β : Type u_2} {e : α} {M : Matroid β} {f : α → β}, (M.comap f).IsLoop e ↔ M.IsLoop (f e)

theorem Matroid.loopyOn_isLoop_iff E0 #

∀ {α : Type u_1} {e : α} {E : Set α}, (Matroid.loopyOn E).IsLoop e ↔ e ∈ E

theorem Matroid.restrict_subset_loops_eq E0 #

∀ {α : Type u_1} {M : Matroid α} {X : Set α}, X ⊆ M.loops → M.restrict X = Matroid.loopyOn X

theorem Matroid.freeOn_not_isLoop E0 #

∀ {α : Type u_1} (E : Set α) (e : α), ¬(Matroid.freeOn E).IsLoop e

theorem Matroid.uniqueBaseOn_isLoop_iff E0 #

∀ {α : Type u_1} {e : α} {I E : Set α}, (Matroid.uniqueBaseOn I E).IsLoop e ↔ e ∈ E \ I

structure Matroid.IsNonloop E1 #

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

M.IsNonloop e means that e is an element of M.E but not a loop of M.

theorem Matroid.isNonloop_iff E0 #

∀ {α : Type u_1} (M : Matroid α) (e : α), M.IsNonloop e ↔ ¬M.IsLoop e ∧ e ∈ M.E

ctor Matroid.IsNonloop.mk E0 #

∀ {α : Type u_1} {M : Matroid α} {e : α}, ¬M.IsLoop e → e ∈ M.E → M.IsNonloop e

theorem Matroid.IsNonloop.not_isLoop E1 #

∀ {α : Type u_1} {M : Matroid α} {e : α}, M.IsNonloop e → ¬M.IsLoop e

theorem Matroid.IsNonloop.mem_ground E0 #

∀ {α : Type u_1} {M : Matroid α} {e : α}, M.IsNonloop e → e ∈ M.E

theorem Matroid.IsLoop.not_isNonloop E1 #

∀ {α : Type u_1} {M : Matroid α} {e : α}, M.IsLoop e → ¬M.IsNonloop e

theorem Matroid.compl_loops_eq E0 #

∀ {α : Type u_1} (M : Matroid α), M.E \ M.loops = {e | M.IsNonloop e}

theorem Matroid.isNonloop_of_not_isLoop E1 #

∀ {α : Type u_1} {M : Matroid α} {e : α},
  autoParam (e ∈ M.E) Matroid.isNonloop_of_not_isLoop._auto_1 → ¬M.IsLoop e → M.IsNonloop e

theorem Matroid.isLoop_of_not_isNonloop E1 #

∀ {α : Type u_1} {M : Matroid α} {e : α},
  autoParam (e ∈ M.E) Matroid.isLoop_of_not_isNonloop._auto_1 → ¬M.IsNonloop e → M.IsLoop e

theorem Matroid.not_isLoop_iff E0 #

∀ {α : Type u_1} {M : Matroid α} {e : α},
  autoParam (e ∈ M.E) Matroid.not_isLoop_iff._auto_1 → (¬M.IsLoop e ↔ M.IsNonloop e)

theorem Matroid.not_isNonloop_iff E0 #

∀ {α : Type u_1} {M : Matroid α} {e : α},
  autoParam (e ∈ M.E) Matroid.not_isNonloop_iff._auto_1 → (¬M.IsNonloop e ↔ M.IsLoop e)

theorem Matroid.isNonloop_iff_mem_compl_loops E1 #

∀ {α : Type u_1} {M : Matroid α} {e : α}, M.IsNonloop e ↔ e ∈ M.E \ M.loops

theorem Matroid.setOfPred_isNonloop_eq E0 #

∀ {α : Type u_1} (M : Matroid α), {e | M.IsNonloop e} = M.E \ M.loops

theorem Matroid.not_isNonloop_iff_closure E1 #

∀ {α : Type u_1} {M : Matroid α} {e : α}, ¬M.IsNonloop e ↔ M.closure {e} = M.loops

theorem Matroid.isLoop_or_isNonloop E1 #

∀ {α : Type u_1} (M : Matroid α) (e : α),
  autoParam (e ∈ M.E) Matroid.isLoop_or_isNonloop._auto_1 → M.IsLoop e ∨ M.IsNonloop e

theorem Matroid.indep_singleton E0 #

∀ {α : Type u_1} {M : Matroid α} {e : α}, M.Indep {e} ↔ M.IsNonloop e

theorem Matroid.Indep.isNonloop E1 #

∀ {α : Type u_1} {M : Matroid α} {e : α}, M.Indep {e} → M.IsNonloop e

Alias of the forward direction of Matroid.indep_singleton.

theorem Matroid.IsNonloop.indep E1 #

∀ {α : Type u_1} {M : Matroid α} {e : α}, M.IsNonloop e → M.Indep {e}

Alias of the reverse direction of Matroid.indep_singleton.

theorem Matroid.Indep.isNonloop_of_mem E1 #

∀ {α : Type u_1} {M : Matroid α} {e : α} {I : Set α}, M.Indep I → e ∈ I → M.IsNonloop e

theorem Matroid.IsNonloop.exists_mem_isBase E1 #

∀ {α : Type u_1} {M : Matroid α} {e : α}, M.IsNonloop e → ∃ B, M.IsBase B ∧ e ∈ B

theorem Matroid.IsCocircuit.isNonloop_of_mem E1 #

∀ {α : Type u_1} {M : Matroid α} {e : α} {K : Set α}, M.IsCocircuit K → e ∈ K → M.IsNonloop e

theorem Matroid.IsCircuit.isNonloop_of_mem E1 #

∀ {α : Type u_1} {M : Matroid α} {e : α} {C : Set α}, M.IsCircuit C → C.Nontrivial → e ∈ C → M.IsNonloop e

theorem Matroid.IsCircuit.isNonloop_of_mem_of_one_lt_card E1 #

∀ {α : Type u_1} {M : Matroid α} {e : α} {C : Set α}, M.IsCircuit C → 1 < C.encard → e ∈ C → M.IsNonloop e

theorem Matroid.isNonloop_of_notMem_closure E1 #

∀ {α : Type u_1} {M : Matroid α} {e : α} {X : Set α},
  e ∉ M.closure X → autoParam (e ∈ M.E) Matroid.isNonloop_of_notMem_closure._auto_1 → M.IsNonloop e

theorem Matroid.isNonloop_iff_notMem_loops E1 #

∀ {α : Type u_1} {M : Matroid α} {e : α},
  autoParam (e ∈ M.E) Matroid.isNonloop_iff_notMem_loops._auto_1 → (M.IsNonloop e ↔ e ∉ M.loops)

theorem Matroid.IsNonloop.mem_closure_singleton E0 #

∀ {α : Type u_1} {M : Matroid α} {e f : α}, M.IsNonloop e → e ∈ M.closure {f} → f ∈ M.closure {e}

theorem Matroid.IsNonloop.mem_closure_comm E0 #

∀ {α : Type u_1} {M : Matroid α} {e f : α}, M.IsNonloop e → M.IsNonloop f → (f ∈ M.closure {e} ↔ e ∈ M.closure {f})

theorem Matroid.IsNonloop.isNonloop_of_mem_closure E1 #

∀ {α : Type u_1} {M : Matroid α} {e f : α}, M.IsNonloop e → e ∈ M.closure {f} → M.IsNonloop f

theorem Matroid.IsNonloop.closure_eq_of_mem_closure E1 #

∀ {α : Type u_1} {M : Matroid α} {e f : α}, M.IsNonloop e → e ∈ M.closure {f} → M.closure {e} = M.closure {f}

theorem Matroid.IsNonloop.closure_eq_closure_iff_isCircuit_of_ne E1 #

∀ {α : Type u_1} {M : Matroid α} {e f : α}, M.IsNonloop e → e ≠ f → (M.closure {e} = M.closure {f} ↔ M.IsCircuit {e, f})

Two distinct nonloops with the same closure form a circuit.

theorem Matroid.IsNonloop.closure_eq_closure_iff_eq_or_dep E1 #

∀ {α : Type u_1} {M : Matroid α} {e f : α},
  M.IsNonloop e → M.IsNonloop f → (M.closure {e} = M.closure {f} ↔ e = f ∨ ¬M.Indep {e, f})

theorem Matroid.exists_isNonloop E1 #

∀ {α : Type u_1} (M : Matroid α) [M.RankPos], ∃ e, M.IsNonloop e

theorem Matroid.IsNonloop.rankPos E1 #

∀ {α : Type u_1} {M : Matroid α} {e : α}, M.IsNonloop e → M.RankPos

theorem Matroid.restrict_isNonloop_iff E0 #

∀ {α : Type u_1} {M : Matroid α} {e : α} {R : Set α}, (M.restrict R).IsNonloop e ↔ M.IsNonloop e ∧ e ∈ R

theorem Matroid.IsNonloop.of_restrict E1 #

∀ {α : Type u_1} {M : Matroid α} {e : α} {R : Set α}, (M.restrict R).IsNonloop e → M.IsNonloop e

theorem Matroid.IsNonloop.of_isRestriction E1 #

∀ {α : Type u_1} {M N : Matroid α} {e : α}, N.IsNonloop e → N.IsRestriction M → M.IsNonloop e

theorem Matroid.isNonloop_iff_restrict_of_mem E1 #

∀ {α : Type u_1} {M : Matroid α} {e : α} {R : Set α}, e ∈ R → (M.IsNonloop e ↔ (M.restrict R).IsNonloop e)

theorem Matroid.comap_isNonloop_iff E0 #

∀ {α : Type u_1} {β : Type u_2} {e : α} {M : Matroid β} {f : α → β}, (M.comap f).IsNonloop e ↔ M.IsNonloop (f e)

theorem Matroid.freeOn_isNonloop_iff E0 #

∀ {α : Type u_1} {e : α} {E : Set α}, (Matroid.freeOn E).IsNonloop e ↔ e ∈ E

theorem Matroid.uniqueBaseOn_isNonloop_iff E0 #

∀ {α : Type u_1} {e : α} {I E : Set α}, (Matroid.uniqueBaseOn I E).IsNonloop e ↔ e ∈ I ∩ E

theorem Matroid.IsNonloop.exists_mem_isCocircuit E1 #

∀ {α : Type u_1} {M : Matroid α} {e : α}, M.IsNonloop e → ∃ K, M.IsCocircuit K ∧ e ∈ K

theorem Matroid.closure_inter_setOfPred_isNonloop_eq E0 #

∀ {α : Type u_1} (M : Matroid α) (X : Set α), M.closure (X ∩ {e | M.IsNonloop e}) = M.closure X

def Matroid.IsColoop E3 #

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

A coloop is a loop of the dual matroid. See Matroid.isColoop_tfae for a number of equivalent definitions.

def Matroid.coloops E1 #

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

M.coloops is the set of coloops of M.

theorem Matroid.IsColoop.mem_ground E0 #

∀ {α : Type u_1} {M : Matroid α} {e : α}, M.IsColoop e → e ∈ M.E

theorem Matroid.coloops_subset_ground E1 #

∀ {α : Type u_1} (M : Matroid α), M.coloops ⊆ M.E

theorem Matroid.isColoop_iff_mem_coloops E1 #

∀ {α : Type u_1} {M : Matroid α} {e : α}, M.IsColoop e ↔ e ∈ M.coloops

theorem Matroid.dual_loops E0 #

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

theorem Matroid.dual_coloops E0 #

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

theorem Matroid.IsColoop.dual_isLoop E1 #

∀ {α : Type u_1} {M : Matroid α} {e : α}, M.IsColoop e → M✶.IsLoop e

theorem Matroid.IsColoop.isCocircuit E1 #

∀ {α : Type u_1} {M : Matroid α} {e : α}, M.IsColoop e → M.IsCocircuit {e}

theorem Matroid.IsLoop.dual_isColoop E1 #

∀ {α : Type u_1} {M : Matroid α} {e : α}, M.IsLoop e → M✶.IsColoop e

theorem Matroid.dual_isColoop_iff_isLoop E0 #

∀ {α : Type u_1} {M : Matroid α} {e : α}, M✶.IsColoop e ↔ M.IsLoop e

theorem Matroid.dual_isLoop_iff_isColoop E0 #

∀ {α : Type u_1} {M : Matroid α} {e : α}, M✶.IsLoop e ↔ M.IsColoop e

theorem Matroid.singleton_isCocircuit E1 #

∀ {α : Type u_1} {M : Matroid α} {e : α}, M.IsCocircuit {e} ↔ M.IsColoop e

theorem Matroid.isColoop_tfae E1 #

∀ {α : Type u_1} (M : Matroid α) (e : α),
  [M.IsColoop e, e ∈ M.coloops, M.IsCocircuit {e}, ∀ ⦃B : Set α⦄, M.IsBase B → e ∈ B,
      (∀ ⦃C : Set α⦄, M.IsCircuit C → e ∉ C) ∧ e ∈ M.E, ∀ (X : Set α), e ∈ M.closure X ↔ e ∈ X,
      ¬M.Spanning (M.E \ {e})].TFAE

theorem Matroid.isColoop_iff_forall_mem_isBase E1 #

∀ {α : Type u_1} {M : Matroid α} {e : α}, M.IsColoop e ↔ ∀ ⦃B : Set α⦄, M.IsBase B → e ∈ B

theorem Matroid.IsBase.mem_of_isColoop E0 #

∀ {α : Type u_1} {M : Matroid α} {e : α} {B : Set α}, M.IsBase B → M.IsColoop e → e ∈ B

theorem Matroid.IsColoop.mem_of_isBase E0 #

∀ {α : Type u_1} {M : Matroid α} {e : α} {B : Set α}, M.IsColoop e → M.IsBase B → e ∈ B

theorem Matroid.IsBase.coloops_subset E1 #

∀ {α : Type u_1} {M : Matroid α} {B : Set α}, M.IsBase B → M.coloops ⊆ B

theorem Matroid.IsColoop.isNonloop E1 #

∀ {α : Type u_1} {M : Matroid α} {e : α}, M.IsColoop e → M.IsNonloop e

theorem Matroid.IsLoop.not_isColoop E1 #

∀ {α : Type u_1} {M : Matroid α} {e : α}, M.IsLoop e → ¬M.IsColoop e

theorem Matroid.IsColoop.notMem_isCircuit E1 #

∀ {α : Type u_1} {M : Matroid α} {e : α} {C : Set α}, M.IsColoop e → M.IsCircuit C → e ∉ C

theorem Matroid.IsCircuit.disjoint_coloops E1 #

∀ {α : Type u_1} {M : Matroid α} {C : Set α}, M.IsCircuit C → Disjoint C M.coloops

theorem Matroid.isColoop_iff_forall_notMem_isCircuit E1 #

∀ {α : Type u_1} {M : Matroid α} {e : α},
  autoParam (e ∈ M.E) Matroid.isColoop_iff_forall_notMem_isCircuit._auto_1 →
    (M.IsColoop e ↔ ∀ ⦃C : Set α⦄, M.IsCircuit C → e ∉ C)

theorem Matroid.isColoop_iff_forall_mem_compl_isCircuit E1 #

∀ {α : Type u_1} {M : Matroid α} {e : α} [M✶.RankPos], M.IsColoop e ↔ ∀ (C : Set α), M.IsCircuit C → e ∈ M.E \ C

theorem Matroid.IsCircuit.not_isColoop_of_mem E1 #

∀ {α : Type u_1} {M : Matroid α} {e : α} {C : Set α}, M.IsCircuit C → e ∈ C → ¬M.IsColoop e

theorem Matroid.isColoop_iff_forall_mem_closure_iff_mem E1 #

∀ {α : Type u_1} {M : Matroid α} {e : α}, M.IsColoop e ↔ ∀ (X : Set α), e ∈ M.closure X ↔ e ∈ X

theorem Matroid.isColoop_iff_forall_mem_closure_iff_mem' E1 #

∀ {α : Type u_1} {M : Matroid α} {e : α}, M.IsColoop e ↔ (∀ X ⊆ M.E, e ∈ M.closure X ↔ e ∈ X) ∧ e ∈ M.E

A version of Matroid.isColoop_iff_forall_mem_closure_iff_mem where we only quantify over subsets of the ground set.

theorem Matroid.IsColoop.mem_closure_iff_mem E0 #

∀ {α : Type u_1} {M : Matroid α} {e : α} {X : Set α}, M.IsColoop e → (e ∈ M.closure X ↔ e ∈ X)

theorem Matroid.IsColoop.mem_of_mem_closure E0 #

∀ {α : Type u_1} {M : Matroid α} {e : α} {X : Set α}, M.IsColoop e → e ∈ M.closure X → e ∈ X

theorem Matroid.isColoop_iff_sdiff_not_spanning E1 #

∀ {α : Type u_1} {M : Matroid α} {e : α}, M.IsColoop e ↔ ¬M.Spanning (M.E \ {e})

theorem Matroid.IsColoop.sdiff_not_spanning E1 #

∀ {α : Type u_1} {M : Matroid α} {e : α}, M.IsColoop e → ¬M.Spanning (M.E \ {e})

Alias of the forward direction of Matroid.isColoop_iff_sdiff_not_spanning.

theorem Matroid.isColoop_iff_sdiff_closure E1 #

∀ {α : Type u_1} {M : Matroid α} {e : α}, M.IsColoop e ↔ M.closure (M.E \ {e}) ≠ M.E

theorem Matroid.isColoop_iff_notMem_closure_compl E1 #

∀ {α : Type u_1} {M : Matroid α} {e : α},
  autoParam (e ∈ M.E) Matroid.isColoop_iff_notMem_closure_compl._auto_1 → (M.IsColoop e ↔ e ∉ M.closure (M.E \ {e}))

theorem Matroid.IsBase.isColoop_iff_forall_notMem_fundCircuit E1 #

∀ {α : Type u_1} {M : Matroid α} {e : α} {B : Set α},
  M.IsBase B → e ∈ B → (M.IsColoop e ↔ ∀ x ∈ M.E \ B, e ∉ M.fundCircuit x B)

theorem Matroid.IsBasis'.inter_coloops_subset E1 #

∀ {α : Type u_1} {M : Matroid α} {X I : Set α}, M.IsBasis' I X → X ∩ M.coloops ⊆ I

theorem Matroid.IsBasis.inter_coloops_subset E1 #

∀ {α : Type u_1} {M : Matroid α} {X I : Set α}, M.IsBasis I X → X ∩ M.coloops ⊆ I

theorem Matroid.exists_mem_isCircuit_of_not_isColoop E1 #

∀ {α : Type u_1} {M : Matroid α} {e : α}, e ∈ M.E → ¬M.IsColoop e → ∃ C, M.IsCircuit C ∧ e ∈ C

theorem Matroid.closure_inter_coloops_eq E0 #

∀ {α : Type u_1} (M : Matroid α) (X : Set α), M.closure X ∩ M.coloops = X ∩ M.coloops

theorem Matroid.closure_inter_eq_of_subset_coloops E1 #

∀ {α : Type u_1} {M : Matroid α} {K : Set α} (X : Set α), K ⊆ M.coloops → M.closure X ∩ K = X ∩ K

theorem Matroid.closure_union_eq_of_subset_coloops E1 #

∀ {α : Type u_1} {M : Matroid α} {K : Set α} (X : Set α), K ⊆ M.coloops → M.closure (X ∪ K) = M.closure X ∪ K

theorem Matroid.closure_insert_isColoop_eq E0 #

∀ {α : Type u_1} {M : Matroid α} {e : α} (X : Set α), M.IsColoop e → M.closure (insert e X) = insert e (M.closure X)

theorem Matroid.closure_eq_of_subset_coloops E1 #

∀ {α : Type u_1} {M : Matroid α} {K : Set α}, K ⊆ M.coloops → M.closure K = K ∪ M.loops

theorem Matroid.closure_sdiff_eq_of_subset_coloops E1 #

∀ {α : Type u_1} {M : Matroid α} {K : Set α} (X : Set α), K ⊆ M.coloops → M.closure (X \ K) = M.closure X \ K

theorem Matroid.closure_disjoint_of_disjoint_of_subset_coloops E1 #

∀ {α : Type u_1} {M : Matroid α} {X K : Set α}, Disjoint X K → K ⊆ M.coloops → Disjoint (M.closure X) K

theorem Matroid.closure_disjoint_coloops_of_disjoint_coloops E1 #

∀ {α : Type u_1} {M : Matroid α} {X : Set α}, Disjoint X M.coloops → Disjoint (M.closure X) M.coloops

theorem Matroid.closure_union_coloops_eq E0 #

∀ {α : Type u_1} (M : Matroid α) (X : Set α), M.closure (X ∪ M.coloops) = M.closure X ∪ M.coloops

theorem Matroid.IsColoop.notMem_closure_of_notMem E1 #

∀ {α : Type u_1} {M : Matroid α} {e : α} {X : Set α}, M.IsColoop e → e ∉ X → e ∉ M.closure X

theorem Matroid.IsColoop.insert_indep_of_indep E1 #

∀ {α : Type u_1} {M : Matroid α} {e : α} {I : Set α}, M.IsColoop e → M.Indep I → M.Indep (insert e I)

theorem Matroid.union_indep_iff_indep_of_subset_coloops E1 #

∀ {α : Type u_1} {M : Matroid α} {I K : Set α}, K ⊆ M.coloops → (M.Indep (I ∪ K) ↔ M.Indep I)

theorem Matroid.sdiff_indep_iff_indep_of_subset_coloops E1 #

∀ {α : Type u_1} {M : Matroid α} {I K : Set α}, K ⊆ M.coloops → (M.Indep (I \ K) ↔ M.Indep I)

theorem Matroid.union_coloops_indep_iff E0 #

∀ {α : Type u_1} {M : Matroid α} {I : Set α}, M.Indep (I ∪ M.coloops) ↔ M.Indep I

theorem Matroid.sdiff_coloops_indep_iff E0 #

∀ {α : Type u_1} {M : Matroid α} {I : Set α}, M.Indep (I \ M.coloops) ↔ M.Indep I

theorem Matroid.coloops_indep E1 #

∀ {α : Type u_1} (M : Matroid α), M.Indep M.coloops

theorem Matroid.restrict_isColoop_iff E0 #

∀ {α : Type u_1} {M : Matroid α} {e : α} {R : Set α},
  R ⊆ M.E → ((M.restrict R).IsColoop e ↔ e ∉ M.closure (R \ {e}) ∧ e ∈ R)

theorem Matroid.ext_indep_disjoint_loops_coloops E1 #

∀ {α : Type u_1} {M₁ M₂ : Matroid α},
  M₁.E = M₂.E →
    M₁.loops = M₂.loops →
      M₁.coloops = M₂.coloops → (∀ I ⊆ M₁.E, Disjoint I (M₁.loops ∪ M₁.coloops) → (M₁.Indep I ↔ M₂.Indep I)) → M₁ = M₂

If two matroids agree on loops and coloops, and have the same independent sets after loops/coloops are removed, they are equal.

class Matroid.Loopless E1 #

{α : Type u_1} → Matroid α → Prop

A Matroid is Loopless if it has no loop

theorem Matroid.loopless_iff E0 #

∀ {α : Type u_1} (M : Matroid α), M.Loopless ↔ M.loops = ∅

ctor Matroid.Loopless.mk E0 #

∀ {α : Type u_1} {M : Matroid α}, M.loops = ∅ → M.Loopless

theorem Matroid.Loopless.loops_eq_empty E1 #

∀ {α : Type u_1} {M : Matroid α} [self : M.Loopless], M.loops = ∅

theorem Matroid.loops_eq_empty E0 #

∀ {α : Type u_1} (M : Matroid α) [M.Loopless], M.loops = ∅

theorem Matroid.isNonloop_of_loopless E1 #

∀ {α : Type u_1} {M : Matroid α} {e : α} [M.Loopless],
  autoParam (e ∈ M.E) Matroid.isNonloop_of_loopless._auto_1 → M.IsNonloop e

theorem Matroid.subsingleton_indep E1 #

∀ {α : Type u_1} {M : Matroid α} {I : Set α} [M.Loopless],
  I.Subsingleton → autoParam (I ⊆ M.E) Matroid.subsingleton_indep._auto_1 → M.Indep I

theorem Matroid.not_isLoop E1 #

∀ {α : Type u_1} (M : Matroid α) [M.Loopless] (e : α), ¬M.IsLoop e

theorem Matroid.loopless_iff_forall_isNonloop E1 #

∀ {α : Type u_1} {M : Matroid α}, M.Loopless ↔ ∀ e ∈ M.E, M.IsNonloop e

theorem Matroid.loopless_iff_forall_not_isLoop E1 #

∀ {α : Type u_1} {M : Matroid α}, M.Loopless ↔ ∀ e ∈ M.E, ¬M.IsLoop e

theorem Matroid.loopless_iff_forall_isCircuit E1 #

∀ {α : Type u_1} {M : Matroid α}, M.Loopless ↔ ∀ (C : Set α), M.IsCircuit C → C.Nontrivial

theorem Matroid.Loopless.ground_eq E0 #

∀ {α : Type u_1} (M : Matroid α) [M.Loopless], M.E = {e | M.IsNonloop e}

theorem Matroid.IsRestriction.loopless E1 #

∀ {α : Type u_1} {M N : Matroid α} [M.Loopless], N.IsRestriction M → N.Loopless

instance Matroid.instRankPosOfNonemptyOfLoopless E0 #

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

theorem Matroid.loopyOn_isLoopless_iff E0 #

∀ {α : Type u_1} {E : Set α}, (Matroid.loopyOn E).Loopless ↔ E = ∅

def Matroid.removeLoops E1 #

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

The loopless matroid obtained from M by deleting all its loops.

theorem Matroid.removeLoops_eq_restrict E1 #

∀ {α : Type u_1} (M : Matroid α), M.removeLoops = M.restrict {e | M.IsNonloop e}

theorem Matroid.removeLoops_ground_eq E0 #

∀ {α : Type u_1} (M : Matroid α), M.removeLoops.E = {e | M.IsNonloop e}

instance Matroid.removeLoops_loopless E0 #

∀ {α : Type u_1} (M : Matroid α), M.removeLoops.Loopless

theorem Matroid.removeLoops_eq_self E0 #

∀ {α : Type u_1} (M : Matroid α) [M.Loopless], M.removeLoops = M

theorem Matroid.removeLoops_eq_self_iff E0 #

∀ {α : Type u_1} {M : Matroid α}, M.removeLoops = M ↔ M.Loopless

theorem Matroid.removeLoops_isRestriction E1 #

∀ {α : Type u_1} (M : Matroid α), M.removeLoops.IsRestriction M

theorem Matroid.removeLoops_indep_eq E0 #

∀ {α : Type u_1} {M : Matroid α}, M.removeLoops.Indep = M.Indep

theorem Matroid.removeLoops_isBasis'_eq E0 #

∀ {α : Type u_1} {M : Matroid α}, M.removeLoops.IsBasis' = M.IsBasis'

theorem Matroid.removeLoops_isBase_eq E0 #

∀ {α : Type u_1} {M : Matroid α}, M.removeLoops.IsBase = M.IsBase

theorem Matroid.removeLoops_isNonloop_eq E0 #

∀ {α : Type u_1} {M : Matroid α}, M.removeLoops.IsNonloop = M.IsNonloop

theorem Matroid.IsNonloop.removeLoops_isNonloop E1 #

∀ {α : Type u_1} {M : Matroid α} {e : α}, M.IsNonloop e → M.removeLoops.IsNonloop e

theorem Matroid.removeLoops_idem E1 #

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

theorem Matroid.removeLoops_restrict_eq_restrict E1 #

∀ {α : Type u_1} {M : Matroid α} {X : Set α}, X ⊆ {e | M.IsNonloop e} → M.removeLoops.restrict X = M.restrict X

theorem Matroid.restrict_univ_removeLoops_eq E0 #

∀ {α : Type u_1} {M : Matroid α}, (M.restrict Set.univ).removeLoops = M.removeLoops

theorem Matroid.IsRestriction.isRestriction_removeLoops E1 #

∀ {α : Type u_1} {M N : Matroid α}, N.IsRestriction M → ∀ [N.Loopless], N.IsRestriction M.removeLoops

theorem Matroid.removeLoops_mono_isRestriction E1 #

∀ {α : Type u_1} {M N : Matroid α}, N.IsRestriction M → N.removeLoops.IsRestriction M.removeLoops

Deprecated aliases

NameNew nameSince
Matroid.closure_diff_eq_of_subset_coloopsMatroid.closure_sdiff_eq_of_subset_coloops2026-06-03
Matroid.closure_diff_loops_eqMatroid.closure_sdiff_loops_eq2026-06-03
Matroid.closure_inter_setOf_isNonloop_eqMatroid.closure_inter_setOfPred_isNonloop_eq2026-07-09
Matroid.diff_coloops_indep_iffMatroid.sdiff_coloops_indep_iff2026-06-03
Matroid.diff_indep_iff_indep_of_subset_coloopsMatroid.sdiff_indep_iff_indep_of_subset_coloops2026-06-03
Matroid.isColoop_iff_diff_closureMatroid.isColoop_iff_sdiff_closure2026-06-03
Matroid.isColoop_iff_diff_not_spanningMatroid.isColoop_iff_sdiff_not_spanning2026-06-03
Matroid.setOf_isNonloop_eqMatroid.setOfPred_isNonloop_eq2026-07-09