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(analysis|measure_theory|topology): give tsum notation precedence 67 #5709

Closed
wants to merge 2 commits into from

Conversation

jcommelin
Copy link
Member

This saves us a lot of ()
In particular, lean no longer thinks that ∑' i, f i = 37 is a tsum of propositions.


…e 67

This saves us a lot of `()`
In particular, lean no longer thinks that `∑' i, f i = 37` is a tsum of propositions.
@jcommelin jcommelin added the awaiting-review The author would like community review of the PR label Jan 12, 2021
@@ -56,7 +56,8 @@ def summable (f : β → α) : Prop := ∃a, has_sum f a
/-- `∑' i, f i` is the sum of `f` it exists, or 0 otherwise -/
@[irreducible] def tsum {β} (f : β → α) := if h : summable f then classical.some h else 0

notation `∑'` binders `, ` r:(scoped f, tsum f) := r
-- See the comment on precedence of big operators in `algebra/big_operators/basic.lean`.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is it worth upgrading that comment to a library note?

Otherwise LGTM.
bors d+

@bors
Copy link

bors bot commented Jan 12, 2021

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

@bryangingechen bryangingechen added delegated The PR author may merge after reviewing final suggestions. awaiting-author A reviewer has asked the author a question or requested changes and removed awaiting-review The author would like community review of the PR labels Jan 12, 2021
@jcommelin
Copy link
Member Author

bors merge

@github-actions github-actions bot added ready-to-merge All that is left is for bors to build and merge this PR. (Remember you need to say `bors r+`.) and removed awaiting-author A reviewer has asked the author a question or requested changes labels Jan 12, 2021
bors bot pushed a commit that referenced this pull request Jan 12, 2021
…e 67 (#5709)

This saves us a lot of `()`
In particular, lean no longer thinks that `∑' i, f i = 37` is a tsum of propositions.
@bors
Copy link

bors bot commented Jan 12, 2021

Pull request successfully merged into master.

Build succeeded:

@bors bors bot changed the title chore(analysis|measure_theory|topology): give tsum notation precedence 67 [Merged by Bors] - chore(analysis|measure_theory|topology): give tsum notation precedence 67 Jan 12, 2021
@bors bors bot closed this Jan 12, 2021
@bors bors bot deleted the tsum branch January 12, 2021 22:49
b-mehta pushed a commit that referenced this pull request Jan 16, 2021
…e 67 (#5709)

This saves us a lot of `()`
In particular, lean no longer thinks that `∑' i, f i = 37` is a tsum of propositions.
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. 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