Skip to content

Commit

Permalink
feat(topology/algebra/infinite_sum): Double sum is equal to a single …
Browse files Browse the repository at this point in the history
…value (#15157)

A generalized version of `tsum_eq_single` that works for a double indexed sum, when all but one summand is zero.



Co-authored-by: Yury G. Kudryashov <urkud@urkud.name>
  • Loading branch information
dtumad and urkud committed Jul 8, 2022
1 parent 8927a02 commit f0f4070
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/topology/algebra/infinite_sum.lean
Expand Up @@ -452,6 +452,12 @@ lemma tsum_eq_single {f : β → α} (b : β) (hf : ∀b' ≠ b, f b' = 0) :
∑'b, f b = f b :=
(has_sum_single b hf).tsum_eq

lemma tsum_tsum_eq_single (f : β → γ → α) (b : β) (c : γ) (hfb : ∀ b' ≠ b, f b' c = 0)
(hfc : ∀ (b' : β) (c' : γ), c' ≠ c → f b' c' = 0) :
∑' b' c', f b' c' = f b c :=
calc ∑' b' c', f b' c' = ∑' b', f b' c : tsum_congr $ λ b', tsum_eq_single _ (hfc b')
... = f b c : tsum_eq_single _ hfb

@[simp] lemma tsum_ite_eq (b : β) [decidable_pred (= b)] (a : α) :
∑' b', (if b' = b then a else 0) = a :=
(has_sum_ite_eq b a).tsum_eq
Expand Down

0 comments on commit f0f4070

Please sign in to comment.