Skip to content

[Merged by Bors] - feat(Data/Matroid/Loop): matroid loops - #22045

Closed
apnelson1 wants to merge 6 commits into
masterfrom
matroid_isloop
Closed

apnelson1 wants to merge 6 commits into
masterfrom
matroid_isloop

Conversation

@apnelson1

Copy link
Copy Markdown
Collaborator

We add a definition of a loop element of a matroid, with basic API.


Open in Gitpod

@github-actions

github-actions Bot commented Feb 18, 2025 •

Copy link
Copy Markdown

PR summary eb3f2b8d28

Import changes for modified files

No significant changes to the import graph

Import changes for all files
Files Import difference
Mathlib.Data.Matroid.Loop (new file) 732

Declarations diff

+ Indep.disjoint_loops
+ Indep.eq_empty_of_subset_loops
+ IsFlat.loops_subset
+ IsLoop
+ IsLoop.closure
+ IsLoop.dep
+ IsLoop.dep_of_mem
+ IsLoop.eq_of_isCircuit_mem
+ IsLoop.isCircuit
+ IsLoop.isLoop_isRestriction
+ IsLoop.mem_closure
+ IsLoop.mem_ground
+ IsLoop.mem_of_isFlat
+ IsLoop.not_indep_of_mem
+ IsLoop.not_mem_of_indep
+ IsLoop.of_isRestriction
+ IsRestriction.isLoop_iff
+ closure_empty
+ closure_eq_loops_of_subset
+ comap_isLoop_iff
+ comap_loops
+ freeOn_not_isLoop
+ isBasis_iff_empty_of_subset_loops
+ isBasis_loops_iff
+ isLoop_iff
+ isLoop_iff_closure_eq_loops
+ isLoop_iff_closure_eq_loops_and_mem_ground
+ isLoop_iff_forall_mem_compl_isBase
+ isLoop_iff_forall_not_mem_isBase
+ isLoop_tfae
+ loops
+ loops_subset_ground
+ loopyOn_isLoop_iff
+ mapEmbedding_isLoop_iff
+ map_isLoop_iff
+ map_loops
+ restrict_isLoop_iff
+ restrict_loops_eq
+ restrict_loops_eq'
+ singleton_dep
+ singleton_isCircuit
+ singleton_not_indep
+ uniqueBaseOn_isLoop_iff
++ _

You can run this locally as follows
## summary with just the declaration names:
./scripts/declarations_diff.sh <optional_commit>

## more verbose report:
./scripts/declarations_diff.sh long <optional_commit>

The doc-module for script/declarations_diff.sh contains some details about this script.


No changes to technical debt.

You can run this locally as

./scripts/technical-debt-metrics.sh pr_summary
  • The relative value is the weighted sum of the differences with weight given by the inverse of the current value of the statistic.
  • The absolute value is the relative value divided by the total sum of the inverses of the current values (i.e. the weighted average of the differences).

@github-actions github-actions Bot added the t-data Data (lists, quotients, numbers, etc) label Feb 18, 2025
Comment thread Mathlib/Data/Matroid/Loop.lean Resolved

@b-mehta b-mehta left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can be a followup PR, but it'd be nice if the docs in Matroid.Restrict and Matroid.Constructions linked to the def here.

I wonder if loopyOn should be defined in this file too.

I'll look at this again after you've made the change we discussed above, to save us both some potential duplicate work!

Comment thread Mathlib/Data/Matroid/Loop.lean Resolved
@apnelson1

apnelson1 commented Feb 19, 2025 •

Copy link
Copy Markdown
Collaborator Author

Thanks for the review!

Can be a followup PR, but it'd be nice if the docs in Matroid.Restrict and Matroid.Constructions linked to the def here.

I wonder if loopyOn should be defined in this file too.

I'll look at this again after you've made the change we discussed above, to save us both some potential duplicate work!

It would be a little annoying to move loopyOn, since it is used in the definition of freeOn, which then would cause quite a few things unrelated to loops to depend on the content of this file. I've added references to IsLoop in earlier docstrings as you suggest.

(I also cleaned up a bunch of silly Restriction -> IsRestriction-related typos in the Matroid.Restrict module docstring, which I hope you can permit as a reviewer).

@jcommelin jcommelin left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks 🎉

bors merge

@ghost ghost added the ready-to-merge This PR has been sent to bors. label Feb 24, 2025
mathlib-bors Bot pushed a commit that referenced this pull request Feb 24, 2025
We add a definition of a loop element of a matroid, with basic API.
@mathlib-bors

mathlib-bors Bot commented Feb 24, 2025

Copy link
Copy Markdown
Contributor

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors Bot changed the title feat(Data/Matroid/Loop): matroid loops [Merged by Bors] - feat(Data/Matroid/Loop): matroid loops Feb 24, 2025
@mathlib-bors mathlib-bors Bot closed this Feb 24, 2025
@mathlib-bors
mathlib-bors Bot deleted the matroid_isloop branch February 24, 2025 10:06
Julian added a commit that referenced this pull request Feb 24, 2025
* origin/master:
  feat(Polynomial): polynomial sequences are bases for R[X] (#20846)
  feat: monoidal structure on Hopf algebras (#12011)
  feat(DiscreteValuationRing): addVal_eq_zero_iff (#21154)
  refactor(Cache): refactor getPackageDir to not use manually provided package directories (#21817)
  feat(CategoryTheory): categories of homological complexes have a separator (#20229)
  chore(Data/Complex): deprecate `Complex.abs` (#21995)
  feat: uncountable instances for `Ordinal` and isomorphic types (#18547)
  feat(Data/Set/Card): a few missing lemmas (#22186)
  feat: discrete topological spaces are 0-manifolds (#22105)
  feat(Data/Matroid/Loop): matroid loops (#22045)
  feat(SetTheory/Ordinal/Nimber/Field): Nimber division (#19066)
  feat(LinearAlgebra/Pi): add `pi_proj` and `pi_proj_comp` (#22162)
  feat(Data/Matroid/Circuit): matroid cocircuits (#21692)
  feat(Topology/Compactification/OnePoint): generalize instance (#22179)
  feat(Combinatorics/SimpleGraph): takeUntil properties (#21250)
  feat(Tactic): `pnat_to_nat` and `enat_to_nat` tactics (#21602)
  refactor: move `Polynomial.coeffs` and related results (#22225)
  chore: add AlgHom.ker_coe_equiv, resolve porting notes and erws (#22019)
  refactor(Order/Category): `ConcreteCategory` instance for `\omegaCPO` (#21478)
  feat(CategoryTheory): Grothendieck categories have a coseparator (#22224)
  feat: tweak calc widget (#22170)
  feat(CategoryTheory): the Freyd-Mitchell embedding theorem (#22222)
  chore(CategoryTheory): turn more `simp` into `simps!` (#22223)
  feat(CategoryTheory): the category of ind-objects is Grothendieck abelian (#21606)
  feat(AlgebraicTopology/SimplexCategory/GeneratorsRelations/EpiMono): epi-mono factorisation in `SimplexCategoryGenRel` (#21743)
  chore(CategoryTheory/DiscreteCategory): turn `simp` to `simps!` (#22217)
  feat(Analysis/Asymptotics): exponential growth of a sequence (#21178)
  feat(CategoryTheory): sigmaConst preserves monomorphisms (#21599)
  feat(RingTheory/Cotangent): `liftBaseChange` is injective for localizations (#21037)
  chore(CategoryTheory): fix incorrect name (#22210)
  feat(CategoryTheory): `IsPullback` version of 'pullback of iso is iso' (#22211)
  feat(CategoryTheory): pullbacks in functor categories (#22209)
  feat(CategoryTheory): detecting limit cones over connected diagrams (#22192)
  feat(LinearAlgebra): add theorems for injective/surjective/bijective compositions of bilinear maps (#21491)
Champitoad pushed a commit that referenced this pull request Feb 25, 2025
We add a definition of a loop element of a matroid, with basic API.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-to-merge This PR has been sent to bors. t-data Data (lists, quotients, numbers, etc)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants