Zulip Chat Archive

Stream: Is there code for X?

Topic: Isolating terms of a finite sum


Vivek Rajesh Joshi (Jun 03 2024 at 11:31):

I'm finding it a bit hard to locate this piece of code. If I have a finite sum over some f x, where x : Fin m, and I want to write the sum as f y + sum over all x that aren't y, how do I do it?

Edward van de Meent (Jun 03 2024 at 11:33):

docs#Finset.sum_insert might be of help

Vivek Rajesh Joshi (Jun 03 2024 at 11:39):

That's pretty close to what I want, the only problem is that this is a sum over a set Finset a and I'm dealing with a sum over a type Fin m. How do I reconcile the two?

Ruben Van de Velde (Jun 03 2024 at 11:41):

A sum over Fin m is actually a sum over Finset.univ : Finset (Fin m)

Ruben Van de Velde (Jun 03 2024 at 11:42):

Actually docs#Finset.add_sum_erase might be even better

Yury G. Kudryashov (Jun 19 2024 at 19:19):

@loogle Finest.univ, Fin.succAbove

loogle (Jun 19 2024 at 19:19):

:exclamation: unknown identifier 'Finest.univ'
Did you mean "Finest.univ", Fin.succAbove?

Yury G. Kudryashov (Jun 19 2024 at 19:20):

@loogle Finset.univ, Fin.succAbove

loogle (Jun 19 2024 at 19:20):

:search: Fin.image_succAbove_univ, Fin.univ_succAbove, and 12 more

Yury G. Kudryashov (Jun 19 2024 at 19:21):

@loogle Finset.univ, Fin.succAbove, Finest.sum

loogle (Jun 19 2024 at 19:21):

:exclamation: unknown identifier 'Finest.sum'
Did you mean Finset.univ, Fin.succAbove, "Finest.sum"?

Yury G. Kudryashov (Jun 19 2024 at 19:21):

@loogle Finset.univ, Fin.succAbove, Finset.sum

loogle (Jun 19 2024 at 19:21):

:search: Fin.sum_univ_succAbove, Matrix.det_succ_column_zero, and 9 more

Yury G. Kudryashov (Jun 19 2024 at 19:22):

New phone insists on correcting Finset to finest

Daniel Weber (Jun 20 2024 at 11:49):

There is docs#Finset.sum_eq_add_sum_diff_singleton


Last updated: May 02 2025 at 03:31 UTC