Commit 2025-03-25 13:39 69f9139b

View on Github →

feat(Data/Matroid): matroid deletion/contraction (#23276) We define deletions and contractions of sets in matroids. We provide basic API for deletion, and its interaction with most of the existing matroid notions in mathlib. The API for contraction is more complicated, so to limit size of this first PR, we just give the definition and the fact that it is dual to deletion.

Estimated changes

added theorem Matroid.IsBasis.delete
added def Matroid.contract
added theorem Matroid.contract_comm
added def Matroid.delete
added theorem Matroid.delete_comm
added theorem Matroid.delete_compl
added theorem Matroid.delete_delete
added theorem Matroid.delete_dep_iff
added theorem Matroid.delete_empty
added theorem Matroid.delete_ground
added theorem Matroid.dual_contract
added theorem Matroid.dual_delete
added theorem Matroid.restrict_compl