Zulip Chat Archive

Stream: new members

Topic: ISO style advice for nested sum with unique indices


Becker A. (Dec 29 2025 at 07:36):

I want to write something like this:

ijkxixjxk\sum_{i \neq j \neq k} x_i \cdot x_j \cdot x_k

I've been using something like this:

 i1,  i2  univ.erase i1,  i3  (univ.erase i1).erase i2, f i1 * f i2 * f i3

is there a "cleaner" way of expressing this?

Yaël Dillies (Dec 29 2025 at 07:41):

You could sum over sets of size three: ∑ s ∈ .powersetCard 3 .univ, ∏ i ∈ s, x i

Yaël Dillies (Dec 29 2025 at 07:41):

This assumes x is valued in a commutative monoid


Last updated: Feb 28 2026 at 14:05 UTC