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] - feat(data/finset/finsupp): Finitely supported product of finsets #11639

Closed
wants to merge 5 commits into from

Conversation

YaelDillies
Copy link
Collaborator

@YaelDillies YaelDillies commented Jan 24, 2022

Define

  • finsupp.indicator: Similar to finsupp.on_finset except that it only requires a partially defined function. This is more compatible with finset.pi.
  • finset.finsupp : finset ι → (ι → finset α) → finset (ι →₀ α): Finitely supported product of finsets.
  • finsupp.pi : (ι →₀ finset α) → finset (ι →₀ α): The set of finitely supported functions whose i-th value lies in the i-th of a given finset-valued finsupp.

This is categorically pleasing.

Open in Gitpod

src/data/finset/finsupp.lean Outdated Show resolved Hide resolved
@alexjbest
Copy link
Member

LGTM

YaelDillies and others added 2 commits January 24, 2022 15:29
Co-authored-by: Alex J Best <alex.j.best@gmail.com>
Copy link
Collaborator

@b-mehta b-mehta left a comment

Choose a reason for hiding this comment

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

bors d+

src/data/finsupp/basic.lean Show resolved Hide resolved
src/data/finset/finsupp.lean Outdated Show resolved Hide resolved
src/data/finsupp/basic.lean Outdated Show resolved Hide resolved
@bors
Copy link

bors bot commented Jan 24, 2022

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

@leanprover-community-bot-assistant leanprover-community-bot-assistant added delegated The PR author may merge after reviewing final suggestions. and removed awaiting-review The author would like community review of the PR labels Jan 24, 2022
@YaelDillies
Copy link
Collaborator Author

Thanks for the quick review!

bors merge

bors bot pushed a commit that referenced this pull request Jan 24, 2022
)

Define
* `finsupp.indicator`: Similar to `finsupp.on_finset` except that it only requires a partially defined function. This is more compatible with `finset.pi`.
* `finset.finsupp : finset ι → (ι → finset α) → finset (ι →₀ α)`: Finitely supported product of finsets.
* `finsupp.pi : (ι →₀ finset α) → finset (ι →₀ α)`: The set of finitely supported functions whose `i`-th value lies in the `i`-th of a given `finset`-valued `finsupp`.
@bors
Copy link

bors bot commented Jan 24, 2022

Build failed (retrying...):

bors bot pushed a commit that referenced this pull request Jan 24, 2022
)

Define
* `finsupp.indicator`: Similar to `finsupp.on_finset` except that it only requires a partially defined function. This is more compatible with `finset.pi`.
* `finset.finsupp : finset ι → (ι → finset α) → finset (ι →₀ α)`: Finitely supported product of finsets.
* `finsupp.pi : (ι →₀ finset α) → finset (ι →₀ α)`: The set of finitely supported functions whose `i`-th value lies in the `i`-th of a given `finset`-valued `finsupp`.
@bors
Copy link

bors bot commented Jan 25, 2022

Pull request successfully merged into master.

Build succeeded:

@bors bors bot changed the title feat(data/finset/finsupp): Finitely supported product of finsets [Merged by Bors] - feat(data/finset/finsupp): Finitely supported product of finsets Jan 25, 2022
@bors bors bot closed this Jan 25, 2022
@bors bors bot deleted the finset_finsupp branch January 25, 2022 00:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
delegated The PR author may merge after reviewing final suggestions.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants