theorem
RingCon.multisetSum
{ι : Type u_1}
{S : Type u_2}
[AddCommMonoid S]
[Mul S]
(t : RingCon S)
(s : Multiset ι)
{f g : ι → S}
(h : ∀ i ∈ s, t (f i) (g i))
:
t (Multiset.map f s).sum (Multiset.map g s).sum
Congruence relation of a ring preserves finite sum indexed by a multiset.
theorem
RingCon.finsetSum
{ι : Type u_1}
{S : Type u_2}
[AddCommMonoid S]
[Mul S]
(t : RingCon S)
(s : Finset ι)
{f g : ι → S}
(h : ∀ i ∈ s, t (f i) (g i))
:
t (s.sum f) (s.sum g)
Congruence relation of a ring preserves finite sum.