-
Notifications
You must be signed in to change notification settings - Fork 251
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: ∑ hi : i ∈ s, f i hi
syntax for big operators
#11563
base: master
Are you sure you want to change the base?
Conversation
∑ hi : i ∈ s, f i hi
syntax for big operators
This PR/issue depends on: |
2ecf418
to
6ef5dec
Compare
I am very much not a fan of |
I am aware of this potential confusion, but consider the number of people wondering how to get access to Or maybe you would be happier with |
|
But |
6ef5dec
to
5509eec
Compare
Define new notation for
Finset.sum
/Finset.prod
. The main changes are∑ hi : i ∈ s, f i hi
as notation for∑ i : s, f i.1 i.2
∑ hi : i ∈ s with p i, f i hi
as notation for∑ i : s.filter p, f i.1 (mem_filter.1 i.2).1
∑ i ∈ s with hpi : p i, f i hpi
as notation for∑ i : s.filter p, f i.1 (mem_filter.1 i.2).2
∑ hi : i ∈ s with hpi : p i, f i hi hpi
as notation for∑ i : s.filter p, f i.1 (mem_filter.1 i.2).1 (mem_filter.1 i.2).2
∑ x ∈ s, f x
to replace∑ x in s, f x
in the future #6795