Interactions between ∑, ∏ and (Add)Con #
theorem
Con.multiset_prod
{ι : Type u_1}
{M : Type u_2}
[CommMonoid M]
(c : Con M)
{s : Multiset ι}
{f g : ι → M}
(h : ∀ x ∈ s, c (f x) (g x))
:
c (Multiset.map f s).prod (Multiset.map g s).prod
Multiplicative congruence relations preserve product indexed by a multiset.
theorem
AddCon.multiset_sum
{ι : Type u_1}
{M : Type u_2}
[AddCommMonoid M]
(c : AddCon M)
{s : Multiset ι}
{f g : ι → M}
(h : ∀ x ∈ s, c (f x) (g x))
:
c (Multiset.map f s).sum (Multiset.map g s).sum
Additive congruence relations preserve sum indexed by a multiset.
theorem
Con.finsetProd
{ι : Type u_1}
{M : Type u_2}
[CommMonoid M]
(c : Con M)
(s : Finset ι)
{f g : ι → M}
(h : ∀ i ∈ s, c (f i) (g i))
:
Multiplicative congruence relations preserve finite product.
theorem
AddCon.finsetSum
{ι : Type u_1}
{M : Type u_2}
[AddCommMonoid M]
(c : AddCon M)
(s : Finset ι)
{f g : ι → M}
(h : ∀ i ∈ s, c (f i) (g i))
:
Additive congruence relations preserve finite sum.
theorem
Con.dfinsuppProd
{ι : Type u_1}
{β : ι → Type u_2}
{M : Type u_3}
[DecidableEq ι]
[CommMonoid M]
[(i : ι) → Zero (β i)]
[(i : ι) → (y : β i) → Decidable (y ≠ 0)]
(c : Con M)
(h h' : (i : ι) → β i → M)
{f g : Π₀ (i : ι), β i}
(hf : ∀ (i : ι), c (h i 0) 1)
(hf' : ∀ (i : ι), c (h' i 0) 1)
(H : ∀ (i : ι), c (h i (f i)) (h' i (g i)))
:
theorem
AddCon.dfinsuppSum
{ι : Type u_1}
{β : ι → Type u_2}
{M : Type u_3}
[DecidableEq ι]
[AddCommMonoid M]
[(i : ι) → Zero (β i)]
[(i : ι) → (y : β i) → Decidable (y ≠ 0)]
(c : AddCon M)
(h h' : (i : ι) → β i → M)
{f g : Π₀ (i : ι), β i}
(hf : ∀ (i : ι), c (h i 0) 0)
(hf' : ∀ (i : ι), c (h' i 0) 0)
(H : ∀ (i : ι), c (h i (f i)) (h' i (g i)))
:
theorem
AddCon.dfinsuppSumAddHom
{ι : Type u_1}
{β : ι → Type u_2}
{M : Type u_3}
[DecidableEq ι]
[AddCommMonoid M]
[(i : ι) → AddCommMonoid (β i)]
(c : AddCon M)
(h h' : (i : ι) → β i →+ M)
{f g : Π₀ (i : ι), β i}
(H : ∀ (i : ι), c ((h i) (f i)) ((h' i) (g i)))
:
c ((DFinsupp.sumAddHom h) f) ((DFinsupp.sumAddHom h') g)
@[deprecated AddCon.finsetSum (since := "2026-04-08")]
theorem
AddCon.finset_sum
{ι : Type u_1}
{M : Type u_2}
[AddCommMonoid M]
(c : AddCon M)
(s : Finset ι)
{f g : ι → M}
(h : ∀ i ∈ s, c (f i) (g i))
:
Alias of AddCon.finsetSum.
Additive congruence relations preserve finite sum.
@[deprecated Con.finsetProd (since := "2026-04-08")]
theorem
Con.finset_prod
{ι : Type u_1}
{M : Type u_2}
[CommMonoid M]
(c : Con M)
(s : Finset ι)
{f g : ι → M}
(h : ∀ i ∈ s, c (f i) (g i))
:
Alias of Con.finsetProd.
Multiplicative congruence relations preserve finite product.