Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Merged by Bors] - chore: Make Finset.preimage not depend on Finset.sum #11601

Closed
wants to merge 7 commits into from

Conversation

YaelDillies
Copy link
Collaborator

@YaelDillies YaelDillies commented Mar 23, 2024

and Data.Finset.LocallyFinite not depend on Finset.sum too


Open in Gitpod

@YaelDillies YaelDillies added awaiting-review The author would like community review of the PR awaiting-CI labels Mar 23, 2024
@urkud
Copy link
Member

urkud commented Mar 23, 2024

This makes BigOperators/Basic depend on Set/Finite. What do you think about creating a new file?

@YaelDillies
Copy link
Collaborator Author

I really really don't think that matters since the main reason to avoid importing Set.Finite is to avoid importing... Finset!

@urkud
Copy link
Member

urkud commented Mar 23, 2024

Let me have a look at the import graph of Data.Set.Finite.
Here is the list of files in the import closure of Data.Set.Finite that aren't imported by Algebra.BigOperators.Basic:

"Mathlib.Control.Applicative"
"Mathlib.Control.Traversable.Basic"
"Mathlib.Data.Finite.Basic"
"Mathlib.Data.Fin.Tuple.Basic"
"Mathlib.Data.Fintype.Card"
"Mathlib.Data.Fintype.Powerset"
"Mathlib.Data.Fintype.Prod"
"Mathlib.Data.Fintype.Sigma"
"Mathlib.Data.Fintype.Sum"
"Mathlib.Data.Fintype.Vector"
"Mathlib.Data.List.Duplicate"
"Mathlib.Data.List.NodupEquivFin"
"Mathlib.Data.List.OfFn"
"Mathlib.Data.List.Sort"
"Mathlib.Data.Pi.Lex"
"Mathlib.Data.Set.Finite"
"Mathlib.Data.Set.Functor"
"Mathlib.Data.Setoid.Basic"
"Mathlib.Data.Sym.Basic"
"Mathlib.Data.Vector"
"Mathlib.Data.Vector.Basic"
"Mathlib.Logic.Embedding.Set"
"Mathlib.Order.WellFounded"

@YaelDillies
Copy link
Collaborator Author

Given that the imports of Algebra.BigOperators.Basic are

import Mathlib.Algebra.BigOperators.Multiset.Lemmas
import Mathlib.Algebra.Function.Indicator
import Mathlib.Algebra.Ring.Opposite
import Mathlib.Data.Finset.Powerset
import Mathlib.Data.Finset.Sigma
import Mathlib.Data.Finset.Sum
import Mathlib.Data.Fintype.Pi
import Mathlib.Data.Int.Cast.Lemmas
import Mathlib.Data.Set.Image

this doesn't stick out to me. I agree that we need to split Algebra.BigOperators.Basic, but I don't think splitting it as "preimage lemmas" vs "the rest" is pertinent. So I suggest we do it in a later PR.

Copy link
Member

@jcommelin jcommelin left a comment

Choose a reason for hiding this comment

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

Thanks 🎉

bors merge

@leanprover-community-mathlib4-bot leanprover-community-mathlib4-bot added ready-to-merge This PR has been sent to bors. and removed awaiting-review The author would like community review of the PR labels Mar 25, 2024
mathlib-bors bot pushed a commit that referenced this pull request Mar 25, 2024
and `Data.Finset.LocallyFinite` not depend on `Finset.sum` too
@mathlib-bors
Copy link
Contributor

mathlib-bors bot commented Mar 25, 2024

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors bot changed the title chore: Make Finset.preimage not depend on Finset.sum [Merged by Bors] - chore: Make Finset.preimage not depend on Finset.sum Mar 25, 2024
@mathlib-bors mathlib-bors bot closed this Mar 25, 2024
@mathlib-bors mathlib-bors bot deleted the move_finset_preimage branch March 25, 2024 08:58
Louddy pushed a commit that referenced this pull request Mar 25, 2024
and `Data.Finset.LocallyFinite` not depend on `Finset.sum` too
utensil pushed a commit that referenced this pull request Mar 26, 2024
and `Data.Finset.LocallyFinite` not depend on `Finset.sum` too
Louddy pushed a commit that referenced this pull request Apr 15, 2024
and `Data.Finset.LocallyFinite` not depend on `Finset.sum` too
atarnoam pushed a commit that referenced this pull request Apr 16, 2024
and `Data.Finset.LocallyFinite` not depend on `Finset.sum` too
uniwuni pushed a commit that referenced this pull request Apr 19, 2024
and `Data.Finset.LocallyFinite` not depend on `Finset.sum` too
callesonne pushed a commit that referenced this pull request Apr 22, 2024
and `Data.Finset.LocallyFinite` not depend on `Finset.sum` too
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.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants