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

feat(data/list/defs): move list.sum to list/defs.lean #1415

Merged
merged 2 commits into from
Sep 8, 2019
Merged

Conversation

semorrison
Copy link
Collaborator

Currently, list.prod is defined to list/defs.lean, but list.sum waits until list/basic.lean, by which time we have to_additive available. This PR instead defines list.sum in parallel with list.prod by hand, and tags it using to_additive in list/basic.lean.

(I was tripped up by this while formalising an IMO problem, where I was trying to work with minimal imports.)

@semorrison semorrison requested a review from a team as a code owner September 8, 2019 06:53
@ChrisHughes24 ChrisHughes24 added the ready-to-merge All that is left is for bors to build and merge this PR. (Remember you need to say `bors r+`.) label Sep 8, 2019
@mergify mergify bot merged commit 6f7224c into master Sep 8, 2019
@mergify mergify bot deleted the list_sum branch September 8, 2019 08:48
anrddh pushed a commit to anrddh/mathlib that referenced this pull request May 15, 2020
…munity#1415)

* feat(data/list/defs): move list.sum to list/defs.lean

* add comment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-to-merge All that is left is for bors to build and merge this PR. (Remember you need to say `bors r+`.)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants