finset #
In this file we provide some elementary results for summations
theorem
Finset.sum_sum_comm_sum
{α : Type u_1}
{β : Type u_2}
{γ : Type u_3}
{ζ : Type u_4}
{ε : Type u_5}
[AddCommMonoid β]
{s : Finset α}
{t : Finset γ}
{u : Finset ζ}
{v : Finset ε}
{f : α → γ → ζ → ε → β}
:
∑ x ∈ s, ∑ y ∈ t, ∑ z ∈ u, ∑ w ∈ v, f x y z w = ∑ x ∈ s, ∑ y ∈ t, ∑ w ∈ v, ∑ z ∈ u, f x y z w
theorem
Finset.sum_5_rotate
{α : Type u_1}
{β : Type u_2}
{γ : Type u_3}
{ζ : Type u_4}
{ε : Type u_5}
{κ : Type u_6}
[AddCommMonoid β]
{s : Finset α}
{t : Finset γ}
{u : Finset ζ}
{v : Finset ε}
{k : Finset κ}
{f : α → γ → ζ → ε → κ → β}
:
∑ x ∈ s, ∑ y ∈ t, ∑ z ∈ u, ∑ w ∈ v, ∑ vz ∈ k, f x y z w vz = ∑ vz ∈ k, ∑ x ∈ s, ∑ y ∈ t, ∑ z ∈ u, ∑ w ∈ v, f x y z w vz