Skip to content

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

Closed
YaelDillies wants to merge 7 commits into
masterfrom
move_finset_preimage
Closed

[Merged by Bors] - chore: Make Finset.preimage not depend on Finset.sum#11601
YaelDillies wants to merge 7 commits into
masterfrom
move_finset_preimage

Conversation

@YaelDillies

@YaelDillies YaelDillies commented Mar 23, 2024

Copy link
Copy Markdown
Contributor

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


Open in Gitpod

@YaelDillies YaelDillies added awaiting-review awaiting-CI This PR does not pass CI yet. This label is automatically removed once it does. labels Mar 23, 2024
@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 Mar 23, 2024
@urkud

urkud commented Mar 23, 2024

Copy link
Copy Markdown
Member

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

@YaelDillies

Copy link
Copy Markdown
Contributor Author

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

@urkud

urkud commented Mar 23, 2024

Copy link
Copy Markdown
Member

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
Copy Markdown
Contributor 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.

@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 ready-to-merge This PR has been sent to bors. and removed awaiting-review 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

mathlib-bors Bot commented Mar 25, 2024

Copy link
Copy Markdown
Contributor

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

3 participants