Candidate3: weighted sum plus singleton eq double
ProvedInverseZeroSum.Candidate3.weighted_sum_plus_singleton_eq_doubleinverse-zero-sum
Generic support-weight identity: if one support point has weight one and every other support point has weight two, adding the singleton value makes the weighted sum equal the doubled unweighted support sum.
Preamble
module public import Mathlib public import Definitions.Def_InverseZeroSum_Candidate3 set_option autoImplicit true @[expose] public section public section open InverseZeroSum InverseZeroSum.Candidate3
Formal statement
theorem InverseZeroSum.Candidate3.weighted_sum_plus_singleton_eq_double
{α M : Type*} [DecidableEq α] [AddCommMonoid M]
(A : Finset α) (f : α → M) (w : α → ℕ)
{u : α} (hu : u ∈ A) (huOne : w u = 1)
(hOther : ∀ x ∈ A.erase u, w x = 2) :
(∑ x ∈ A, w x • f x) + f u =
∑ x ∈ A, (2 : ℕ) • f x := by sorrySource