Zulip Chat Archive

Stream: general

Topic: binding prod / vs sum -


Bolton Bailey (Apr 11 2022 at 15:28):

Noticed something interesting when converting a lemma to a to_additive form. In the expression
∑ k in range m, f k - ∑ k in range n, f k
The s bind tighter and the expression is interpreted correctly. But when I convert this to
∏ k in range m, f k / ∏ k in range n, f k
The first binds the whole expression. Is this intended?

Yaël Dillies (Apr 11 2022 at 15:29):

Yes, have a look at the module docstring of file#algebra/big_operators/basic

Anne Baanen (Apr 11 2022 at 15:31):

Yaël Dillies said:

Yes, have a look at the module docstring of file#algebra/big_operators/basic

I don't see anything about the precedence in the module docs...

Anne Baanen (Apr 11 2022 at 15:31):

Aha, it's a bit lower

Kevin Buzzard (Apr 11 2022 at 15:31):

It's this, not the actual module doc


Last updated: Dec 20 2023 at 11:08 UTC