Skip to content

[Merged by Bors] - feat(Matroid): cardinality criteria for indep/spanning sets to be bases - #21512

Closed
alreadydone wants to merge 9 commits into
masterfrom
matroid_cardinal_criteria
Closed

alreadydone wants to merge 9 commits into
masterfrom
matroid_cardinal_criteria

Conversation

@alreadydone

Copy link
Copy Markdown
Contributor

Open in Gitpod

@alreadydone
alreadydone requested a review from apnelson1 February 6, 2025 15:52
@github-actions github-actions Bot added the t-data Data (lists, quotients, numbers, etc) label Feb 6, 2025
@github-actions

github-actions Bot commented Feb 6, 2025 •

Copy link
Copy Markdown

PR summary 65b0f24886

Import changes for modified files

No significant changes to the import graph

Import changes for all files
Files Import difference

Declarations diff

+ Base.eq_of_superset_spanning
+ Indep.base_of_cRank_le
+ Indep.base_of_cRank_le_of_finite
+ Indep.cardinalMk_le_cRank
+ Spanning.base_of_le_cRank
+ Spanning.base_of_le_cRank_of_finite
+ Spanning.base_of_minimal
+ Spanning.cRank_le_cardinalMk
+ base_iff_minimal_spanning
+ cRank_eq_iSup_cardinalMk_indep
+ flat_closure
+ flat_iff_closure_eq
+ instance : Nonempty {F | M.Flat F ∧ X ∩ M.E ⊆ F} := ⟨M.E, M.ground_flat, inter_subset_right⟩
+ rankFinite_iff_cRank_lt_aleph0

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

@apnelson1 apnelson1 left a comment •

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

lgtm

Maybe these new lemmas are more naturally placed before the InvariantCardinalRank definition?

Comment thread Mathlib/Data/Matroid/Rank/Cardinal.lean Resolved
Comment thread Mathlib/Data/Matroid/Rank/Cardinal.lean Resolved
@alreadydone

alreadydone commented Feb 6, 2025 •

Copy link
Copy Markdown
Contributor Author

Maybe these new lemmas are more naturally placed before the InvariantCardinalRank definition?

Two of them use cardinalMk_eq_cRank which need the instance FiniteRk -> Finitary -> InvariantCardinalRank, so this can't be done.
Thanks for the review! Didn't expect it so soon :)

@apnelson1 apnelson1 left a comment •

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

These are fine - the reason they're not there yet is that Flat is basically just a definition, and the API is still in the repo. See https://github.com/apnelson1/Matroid/tree/main/Matroid/Flat for these lemmas and many more.

Comment thread Mathlib/Data/Matroid/Closure.lean Resolved

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

bors d=apnelson1

@mathlib-bors

mathlib-bors Bot commented Feb 10, 2025

Copy link
Copy Markdown
Contributor

✌️ apnelson1 can now approve this pull request. To approve and merge a pull request, simply reply with bors r+. More detailed instructions are available here.

@ghost ghost added the delegated This pull request has been delegated to the PR author (or occasionally another non-maintainer). label Feb 10, 2025
@apnelson1

Copy link
Copy Markdown
Collaborator

I think you will need to merge master because 'FiniteRk' has changed name.

@alreadydone alreadydone added the awaiting-CI This PR does not pass CI yet. This label is automatically removed once it does. label Feb 10, 2025
@github-actions github-actions Bot removed the awaiting-CI This PR does not pass CI yet. This label is automatically removed once it does. label Feb 10, 2025
@apnelson1

Copy link
Copy Markdown
Collaborator

bors r+

@mathlib-bors

mathlib-bors Bot commented Feb 10, 2025

Copy link
Copy Markdown
Contributor

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors Bot changed the title feat(Matroid): cardinality criteria for indep/spanning sets to be bases [Merged by Bors] - feat(Matroid): cardinality criteria for indep/spanning sets to be bases Feb 10, 2025
@mathlib-bors mathlib-bors Bot closed this Feb 10, 2025
@mathlib-bors
mathlib-bors Bot deleted the matroid_cardinal_criteria branch February 10, 2025 22:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

delegated This pull request has been delegated to the PR author (or occasionally another non-maintainer). t-data Data (lists, quotients, numbers, etc)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants