The Mathlib Handbook

The volumes of the handbook are not written yet. This site shows the map of Mathlib that they will follow, at Mathlib 4472534b60.

The areas / V09. Commutative algebra I: ideals, polynomials, factorization

Mathlib.Algebra.TotalMonoidAlgebra.Defs

206 declarations. Mathlib docs · Source

Total Monoid Algebras

This file mirrors the construction in MonoidAlgebra/Defs.lean, but drops the finiteness condition on the support of the elements. In the literature, this construction is called the "large algebra of a monoid" or "total algebra" (see https://en.wikipedia.org/wiki/Total_algebra). When the underlying monoid is finitely supported functions valued in ℕ, this construction corresponds to the multivariate formal power series in the large sense, where arbitrary infinite sums of monomials are permitted.

The multiplication in a total monoid algebra.

Unlike MonoidAlgebra which is based on finitely supported functions, TotalMonoidAlgebra allows elements with infinite support. Consequently, to ensure that the convolution product is well-defined (i.e., the coefficient sum is finite), we require the underlying monoid M to satisfy the Finset.HasMulAntidiagonal condition. This guarantees that for any element z : M, there are only finitely many pairs (x, y) such that x * y = z.

theorem TotalMonoidAlgebra.ofCoeff.inj E1 #

∀ {R : Type u_1} {M : Type u_2} {inst : Semiring R} {coeff coeff_1 : M → R},
  TotalMonoidAlgebra.ofCoeff coeff = TotalMonoidAlgebra.ofCoeff coeff_1 → coeff = coeff_1

theorem TotalAddMonoidAlgebra.ofCoeff.injEq E0 #

∀ {R : Type u_1} {M : Type u_2} [inst : Semiring R] (coeff coeff_1 : M → R),
  (TotalAddMonoidAlgebra.ofCoeff coeff = TotalAddMonoidAlgebra.ofCoeff coeff_1) = (coeff = coeff_1)

def TotalMonoidAlgebra.ctorIdx E1 #

{R : Type u_1} → {M : Type u_2} → {inst : Semiring R} → TotalMonoidAlgebra R M → ℕ

def TotalAddMonoidAlgebra.ctorIdx E1 #

{R : Type u_1} → {M : Type u_2} → {inst : Semiring R} → TotalAddMonoidAlgebra R M → ℕ

theorem TotalAddMonoidAlgebra.ofCoeff.inj E1 #

∀ {R : Type u_1} {M : Type u_2} {inst : Semiring R} {coeff coeff_1 : M → R},
  TotalAddMonoidAlgebra.ofCoeff coeff = TotalAddMonoidAlgebra.ofCoeff coeff_1 → coeff = coeff_1

theorem TotalMonoidAlgebra.ofCoeff.injEq E0 #

∀ {R : Type u_1} {M : Type u_2} [inst : Semiring R] (coeff coeff_1 : M → R),
  (TotalMonoidAlgebra.ofCoeff coeff = TotalMonoidAlgebra.ofCoeff coeff_1) = (coeff = coeff_1)

structure TotalAddMonoidAlgebra E1 #

(R : Type u_1) → Type u_2 → [Semiring R] → Type (max u_1 u_2)

The additive total monoid algebra over a semiring R generated by the additive monoid M.

It is the type of all formal R-linear combinations of terms of M, endowed with the convolution product.

ctor TotalAddMonoidAlgebra.ofCoeff E0 #

{R : Type u_1} → {M : Type u_2} → [inst : Semiring R] → (M → R) → TotalAddMonoidAlgebra R M

Construct an element of the total additive monoid algebra R⟦M⟧ from its coefficients M → R.

abbrev TotalAddMonoidAlgebra.coeff E1 #

{R : Type u_1} → {M : Type u_2} → [inst : Semiring R] → TotalAddMonoidAlgebra R M → M → R

The coefficients M → R of an element of the total additive monoid algebra R⟦M⟧.

structure TotalMonoidAlgebra E1 #

(R : Type u_1) → Type u_2 → [Semiring R] → Type (max u_1 u_2)

The total monoid algebra over a semiring R generated by the monoid M.

It is the type of all formal R-linear combinations of terms of M, endowed with the convolution product.

ctor TotalMonoidAlgebra.ofCoeff E0 #

{R : Type u_1} → {M : Type u_2} → [inst : Semiring R] → (M → R) → TotalMonoidAlgebra R M

Construct an element of the total monoid algebra R⟦M⟧ from its coefficients M → R.

abbrev TotalMonoidAlgebra.coeff E1 #

{R : Type u_1} → {M : Type u_2} → [inst : Semiring R] → TotalMonoidAlgebra R M → M → R

The coefficients M → R of an element of the total monoid algebra R⟦M⟧.

def TotalAddMonoidAlgebra.«term__⟦_⟧» E1 #

Lean.TrailingParserDescr

The additive total monoid algebra over a semiring R generated by the additive monoid M.

It is the type of all formal R-linear combinations of terms of M, endowed with the convolution product.

def TotalAddMonoidAlgebra.unexpander E1 #

Lean.PrettyPrinter.Unexpander

Unexpander for TotalAddMonoidAlgebra.

def TotalAddMonoidAlgebra.delabOfCoeff E1 #

Lean.PrettyPrinter.Delaborator.Delab

This prevents ofCoeff x being printed as { coeff := x } by delabStructureInstance.

def TotalMonoidAlgebra.delabOfCoeff E1 #

Lean.PrettyPrinter.Delaborator.Delab

This prevents ofCoeff x being printed as { coeff := x } by delabStructureInstance.

def TotalMonoidAlgebra.«term__⟦_⟧» E1 #

Lean.TrailingParserDescr

The total monoid algebra over a semiring R generated by the monoid M.

It is the type of all formal R-linear combinations of terms of M, endowed with the convolution product.

def TotalMonoidAlgebra.unexpander E1 #

Lean.PrettyPrinter.Unexpander

Unexpander for TotalMonoidAlgebra.

theorem TotalMonoidAlgebra.coeff_ofCoeff E1 #

∀ {R : Type u_1} {M : Type u_2} [inst : Semiring R] (x : M → R), (TotalMonoidAlgebra.ofCoeff x).coeff = x

theorem TotalAddMonoidAlgebra.coeff_ofCoeff E1 #

∀ {R : Type u_1} {M : Type u_2} [inst : Semiring R] (x : M → R), (TotalAddMonoidAlgebra.ofCoeff x).coeff = x

theorem TotalMonoidAlgebra.ofCoeff_coeff E1 #

∀ {R : Type u_1} {M : Type u_2} [inst : Semiring R] (x : TotalMonoidAlgebra R M), TotalMonoidAlgebra.ofCoeff x.coeff = x

theorem TotalAddMonoidAlgebra.ofCoeff_coeff E1 #

∀ {R : Type u_1} {M : Type u_2} [inst : Semiring R] (x : TotalAddMonoidAlgebra R M),
  TotalAddMonoidAlgebra.ofCoeff x.coeff = x

def TotalMonoidAlgebra.coeffEquiv E1 #

{R : Type u_1} → {M : Type u_2} → [inst : Semiring R] → TotalMonoidAlgebra R M ≃ (M → R)

TotalMonoidAlgebra.coeff as an equiv.

theorem TotalMonoidAlgebra.coeffEquiv_symm_apply E0 #

∀ {R : Type u_1} {M : Type u_2} [inst : Semiring R] (coeff : M → R),
  TotalMonoidAlgebra.coeffEquiv.symm coeff = TotalMonoidAlgebra.ofCoeff coeff

def TotalAddMonoidAlgebra.coeffEquiv E1 #

{R : Type u_1} → {M : Type u_2} → [inst : Semiring R] → TotalAddMonoidAlgebra R M ≃ (M → R)

TotalAddMonoidAlgebra.coeff as an equiv.

theorem TotalAddMonoidAlgebra.coeffEquiv_symm_apply E0 #

∀ {R : Type u_1} {M : Type u_2} [inst : Semiring R] (coeff : M → R),
  TotalAddMonoidAlgebra.coeffEquiv.symm coeff = TotalAddMonoidAlgebra.ofCoeff coeff

theorem TotalAddMonoidAlgebra.coeffEquiv_apply E0 #

∀ {R : Type u_1} {M : Type u_2} [inst : Semiring R] {x : TotalAddMonoidAlgebra R M},
  TotalAddMonoidAlgebra.coeffEquiv x = x.coeff

theorem TotalMonoidAlgebra.coeffEquiv_apply E0 #

∀ {R : Type u_1} {M : Type u_2} [inst : Semiring R] {x : TotalMonoidAlgebra R M},
  TotalMonoidAlgebra.coeffEquiv x = x.coeff

theorem TotalAddMonoidAlgebra.forall E1 #

∀ {R : Type u_1} {M : Type u_2} [inst : Semiring R] {P : TotalAddMonoidAlgebra R M → Prop},
  (∀ (p : TotalAddMonoidAlgebra R M), P p) ↔ ∀ (q : M → R), P (TotalAddMonoidAlgebra.ofCoeff q)

theorem TotalMonoidAlgebra.forall E1 #

∀ {R : Type u_1} {M : Type u_2} [inst : Semiring R] {P : TotalMonoidAlgebra R M → Prop},
  (∀ (p : TotalMonoidAlgebra R M), P p) ↔ ∀ (q : M → R), P (TotalMonoidAlgebra.ofCoeff q)

theorem TotalMonoidAlgebra.exists E1 #

∀ {R : Type u_1} {M : Type u_2} [inst : Semiring R] {P : TotalMonoidAlgebra R M → Prop},
  (∃ p, P p) ↔ ∃ q, P (TotalMonoidAlgebra.ofCoeff q)

theorem TotalAddMonoidAlgebra.exists E1 #

∀ {R : Type u_1} {M : Type u_2} [inst : Semiring R] {P : TotalAddMonoidAlgebra R M → Prop},
  (∃ p, P p) ↔ ∃ q, P (TotalAddMonoidAlgebra.ofCoeff q)

theorem TotalAddMonoidAlgebra.coeff_injective E1 #

∀ {R : Type u_1} {M : Type u_2} [inst : Semiring R], Function.Injective TotalAddMonoidAlgebra.coeff

theorem TotalMonoidAlgebra.coeff_injective E1 #

∀ {R : Type u_1} {M : Type u_2} [inst : Semiring R], Function.Injective TotalMonoidAlgebra.coeff

theorem TotalMonoidAlgebra.ofCoeff_injective E1 #

∀ {R : Type u_1} {M : Type u_2} [inst : Semiring R], Function.Injective TotalMonoidAlgebra.ofCoeff

theorem TotalAddMonoidAlgebra.ofCoeff_injective E1 #

∀ {R : Type u_1} {M : Type u_2} [inst : Semiring R], Function.Injective TotalAddMonoidAlgebra.ofCoeff

theorem TotalMonoidAlgebra.coeff_inj E0 #

∀ {R : Type u_1} {M : Type u_2} [inst : Semiring R] {x y : TotalMonoidAlgebra R M}, x.coeff = y.coeff ↔ x = y

theorem TotalAddMonoidAlgebra.coeff_inj E0 #

∀ {R : Type u_1} {M : Type u_2} [inst : Semiring R] {x y : TotalAddMonoidAlgebra R M}, x.coeff = y.coeff ↔ x = y

theorem TotalAddMonoidAlgebra.ofCoeff_inj E1 #

∀ {R : Type u_1} {M : Type u_2} [inst : Semiring R] {x y : M → R},
  TotalAddMonoidAlgebra.ofCoeff x = TotalAddMonoidAlgebra.ofCoeff y ↔ x = y

theorem TotalMonoidAlgebra.ofCoeff_inj E1 #

∀ {R : Type u_1} {M : Type u_2} [inst : Semiring R] {x y : M → R},
  TotalMonoidAlgebra.ofCoeff x = TotalMonoidAlgebra.ofCoeff y ↔ x = y

theorem TotalAddMonoidAlgebra.ext E1 #

∀ {R : Type u_1} {M : Type u_2} [inst : Semiring R] {x y : TotalAddMonoidAlgebra R M}, x.coeff = y.coeff → x = y

Alias of the forward direction of TotalAddMonoidAlgebra.coeff_inj.

theorem TotalAddMonoidAlgebra.ext_iff E0 #

∀ {R : Type u_1} {M : Type u_2} [inst : Semiring R] {x y : TotalAddMonoidAlgebra R M}, x = y ↔ x.coeff = y.coeff

theorem TotalMonoidAlgebra.ext E1 #

∀ {R : Type u_1} {M : Type u_2} [inst : Semiring R] {x y : TotalMonoidAlgebra R M}, x.coeff = y.coeff → x = y

Alias of the forward direction of TotalMonoidAlgebra.coeff_inj.

theorem TotalMonoidAlgebra.ext_iff E0 #

∀ {R : Type u_1} {M : Type u_2} [inst : Semiring R] {x y : TotalMonoidAlgebra R M}, x = y ↔ x.coeff = y.coeff

instance TotalMonoidAlgebra.instInhabited E0 #

{R : Type u_1} → {M : Type u_2} → [inst : Semiring R] → Inhabited (TotalMonoidAlgebra R M)

instance TotalAddMonoidAlgebra.instInhabited E0 #

{R : Type u_1} → {M : Type u_2} → [inst : Semiring R] → Inhabited (TotalAddMonoidAlgebra R M)

instance TotalAddMonoidAlgebra.instNontrivial E0 #

∀ {R : Type u_1} {M : Type u_2} [inst : Semiring R] [Nontrivial R] [Nonempty M], Nontrivial (TotalAddMonoidAlgebra R M)

instance TotalMonoidAlgebra.instNontrivial E0 #

∀ {R : Type u_1} {M : Type u_2} [inst : Semiring R] [Nontrivial R] [Nonempty M], Nontrivial (TotalMonoidAlgebra R M)

instance TotalAddMonoidAlgebra.instUnique E0 #

{R : Type u_1} → {M : Type u_2} → [inst : Semiring R] → [Subsingleton R] → Unique (TotalAddMonoidAlgebra R M)

instance TotalMonoidAlgebra.instUnique E0 #

{R : Type u_1} → {M : Type u_2} → [inst : Semiring R] → [Subsingleton R] → Unique (TotalMonoidAlgebra R M)

instance TotalAddMonoidAlgebra.instAddMonoid E0 #

{R : Type u_1} → {M : Type u_2} → [inst : Semiring R] → AddMonoid (TotalAddMonoidAlgebra R M)

instance TotalMonoidAlgebra.instAddMonoid E0 #

{R : Type u_1} → {M : Type u_2} → [inst : Semiring R] → AddMonoid (TotalMonoidAlgebra R M)

instance TotalAddMonoidAlgebra.instAddCommMonoid E0 #

{R : Type u_1} → {M : Type u_2} → [inst : Semiring R] → AddCommMonoid (TotalAddMonoidAlgebra R M)

instance TotalMonoidAlgebra.instAddCommMonoid E0 #

{R : Type u_1} → {M : Type u_2} → [inst : Semiring R] → AddCommMonoid (TotalMonoidAlgebra R M)

instance TotalAddMonoidAlgebra.instIsCancelAdd E0 #

∀ {R : Type u_1} {M : Type u_2} [inst : Semiring R] [IsCancelAdd R], IsCancelAdd (TotalAddMonoidAlgebra R M)

instance TotalMonoidAlgebra.instIsCancelAdd E0 #

∀ {R : Type u_1} {M : Type u_2} [inst : Semiring R] [IsCancelAdd R], IsCancelAdd (TotalMonoidAlgebra R M)

def TotalMonoidAlgebra.coeffAddEquiv E1 #

{R : Type u_1} → {M : Type u_2} → [inst : Semiring R] → TotalMonoidAlgebra R M ≃+ (M → R)

TotalMonoidAlgebra.coeff as an AddEquiv.

theorem TotalAddMonoidAlgebra.coeffAddEquiv_apply E0 #

∀ {R : Type u_1} {M : Type u_2} [inst : Semiring R] (self : TotalAddMonoidAlgebra R M) (a : M),
  TotalAddMonoidAlgebra.coeffAddEquiv self a = self.coeff a

theorem TotalMonoidAlgebra.coeffAddEquiv_symm_apply E0 #

∀ {R : Type u_1} {M : Type u_2} [inst : Semiring R] (coeff : M → R),
  TotalMonoidAlgebra.coeffAddEquiv.symm coeff = TotalMonoidAlgebra.ofCoeff coeff

def TotalAddMonoidAlgebra.coeffAddEquiv E1 #

{R : Type u_1} → {M : Type u_2} → [inst : Semiring R] → TotalAddMonoidAlgebra R M ≃+ (M → R)

TotalAddMonoidAlgebra.coeff as an AddEquiv.

theorem TotalMonoidAlgebra.coeffAddEquiv_apply E0 #

∀ {R : Type u_1} {M : Type u_2} [inst : Semiring R] (self : TotalMonoidAlgebra R M) (a : M),
  TotalMonoidAlgebra.coeffAddEquiv self a = self.coeff a

theorem TotalAddMonoidAlgebra.coeffAddEquiv_symm_apply E0 #

∀ {R : Type u_1} {M : Type u_2} [inst : Semiring R] (coeff : M → R),
  TotalAddMonoidAlgebra.coeffAddEquiv.symm coeff = TotalAddMonoidAlgebra.ofCoeff coeff

theorem TotalMonoidAlgebra.coeff_zero E0 #

∀ {R : Type u_1} {M : Type u_2} [inst : Semiring R], TotalMonoidAlgebra.coeff 0 = 0

theorem TotalAddMonoidAlgebra.coeff_zero E0 #

∀ {R : Type u_1} {M : Type u_2} [inst : Semiring R], TotalAddMonoidAlgebra.coeff 0 = 0

theorem TotalAddMonoidAlgebra.ofCoeff_zero E0 #

∀ {R : Type u_1} {M : Type u_2} [inst : Semiring R], TotalAddMonoidAlgebra.ofCoeff 0 = 0

theorem TotalMonoidAlgebra.ofCoeff_zero E0 #

∀ {R : Type u_1} {M : Type u_2} [inst : Semiring R], TotalMonoidAlgebra.ofCoeff 0 = 0

theorem TotalAddMonoidAlgebra.coeff_eq_zero E0 #

∀ {R : Type u_1} {M : Type u_2} [inst : Semiring R] {x : TotalAddMonoidAlgebra R M}, x.coeff = 0 ↔ x = 0

theorem TotalMonoidAlgebra.coeff_eq_zero E0 #

∀ {R : Type u_1} {M : Type u_2} [inst : Semiring R] {x : TotalMonoidAlgebra R M}, x.coeff = 0 ↔ x = 0

theorem TotalMonoidAlgebra.ofCoeff_eq_zero E0 #

∀ {R : Type u_1} {M : Type u_2} [inst : Semiring R] {x : M → R}, TotalMonoidAlgebra.ofCoeff x = 0 ↔ x = 0

theorem TotalAddMonoidAlgebra.ofCoeff_eq_zero E0 #

∀ {R : Type u_1} {M : Type u_2} [inst : Semiring R] {x : M → R}, TotalAddMonoidAlgebra.ofCoeff x = 0 ↔ x = 0

theorem TotalAddMonoidAlgebra.coeff_add E0 #

∀ {R : Type u_1} {M : Type u_2} [inst : Semiring R] (x y : TotalAddMonoidAlgebra R M), (x + y).coeff = x.coeff + y.coeff

theorem TotalMonoidAlgebra.coeff_add E0 #

∀ {R : Type u_1} {M : Type u_2} [inst : Semiring R] (x y : TotalMonoidAlgebra R M), (x + y).coeff = x.coeff + y.coeff

theorem TotalMonoidAlgebra.ofCoeff_add E0 #

∀ {R : Type u_1} {M : Type u_2} [inst : Semiring R] (x y : M → R),
  TotalMonoidAlgebra.ofCoeff (x + y) = TotalMonoidAlgebra.ofCoeff x + TotalMonoidAlgebra.ofCoeff y

theorem TotalAddMonoidAlgebra.ofCoeff_add E0 #

∀ {R : Type u_1} {M : Type u_2} [inst : Semiring R] (x y : M → R),
  TotalAddMonoidAlgebra.ofCoeff (x + y) = TotalAddMonoidAlgebra.ofCoeff x + TotalAddMonoidAlgebra.ofCoeff y

theorem TotalAddMonoidAlgebra.coeff_sum E0 #

∀ {R : Type u_1} {M : Type u_2} {ι : Type u_5} [inst : Semiring R] (s : Finset ι) (f : ι → TotalAddMonoidAlgebra R M),
  (∑ i ∈ s, f i).coeff = ∑ i ∈ s, (f i).coeff

theorem TotalMonoidAlgebra.coeff_sum E0 #

∀ {R : Type u_1} {M : Type u_2} {ι : Type u_5} [inst : Semiring R] (s : Finset ι) (f : ι → TotalMonoidAlgebra R M),
  (∑ i ∈ s, f i).coeff = ∑ i ∈ s, (f i).coeff

theorem TotalAddMonoidAlgebra.ofCoeff_sum E0 #

∀ {R : Type u_1} {M : Type u_2} {ι : Type u_5} [inst : Semiring R] (s : Finset ι) (f : ι → M → R),
  TotalAddMonoidAlgebra.ofCoeff (∑ i ∈ s, f i) = ∑ i ∈ s, TotalAddMonoidAlgebra.ofCoeff (f i)

theorem TotalMonoidAlgebra.ofCoeff_sum E0 #

∀ {R : Type u_1} {M : Type u_2} {ι : Type u_5} [inst : Semiring R] (s : Finset ι) (f : ι → M → R),
  TotalMonoidAlgebra.ofCoeff (∑ i ∈ s, f i) = ∑ i ∈ s, TotalMonoidAlgebra.ofCoeff (f i)

theorem TotalMonoidAlgebra.coeff_finsuppSum E0 #

∀ {R : Type u_1} {M : Type u_2} {N : Type u_3} {ι : Type u_5} [inst : Semiring R] [inst_1 : AddCommMonoid N]
  (f : ι →₀ N) (g : ι → N → TotalMonoidAlgebra R M), (f.sum g).coeff = f.sum fun i n ↦ (g i n).coeff

theorem TotalAddMonoidAlgebra.coeff_finsuppSum E0 #

∀ {R : Type u_1} {M : Type u_2} {N : Type u_3} {ι : Type u_5} [inst : Semiring R] [inst_1 : AddCommMonoid N]
  (f : ι →₀ N) (g : ι → N → TotalAddMonoidAlgebra R M), (f.sum g).coeff = f.sum fun i n ↦ (g i n).coeff

theorem TotalAddMonoidAlgebra.ofCoeff_finsuppSum E0 #

∀ {R : Type u_1} {M : Type u_2} {N : Type u_3} {ι : Type u_5} [inst : Semiring R] [inst_1 : AddCommMonoid N]
  (f : ι →₀ N) (g : ι → N → M → R),
  TotalAddMonoidAlgebra.ofCoeff (f.sum g) = f.sum fun i n ↦ TotalAddMonoidAlgebra.ofCoeff (g i n)

theorem TotalMonoidAlgebra.ofCoeff_finsuppSum E0 #

∀ {R : Type u_1} {M : Type u_2} {N : Type u_3} {ι : Type u_5} [inst : Semiring R] [inst_1 : AddCommMonoid N]
  (f : ι →₀ N) (g : ι → N → M → R),
  TotalMonoidAlgebra.ofCoeff (f.sum g) = f.sum fun i n ↦ TotalMonoidAlgebra.ofCoeff (g i n)

def TotalMonoidAlgebra.single E1 #

{R : Type u_1} → {M : Type u_2} → [inst : Semiring R] → [DecidableEq M] → M → R → TotalMonoidAlgebra R M

TotalMonoidAlgebra.single m r for m : M, r : R is the element rm : R⟦M⟧.

def TotalAddMonoidAlgebra.single E1 #

{R : Type u_1} → {M : Type u_2} → [inst : Semiring R] → [DecidableEq M] → M → R → TotalAddMonoidAlgebra R M

TotalAddMonoidAlgebra.single m r for m : M, r : R is the element rm : R⟦M⟧.

theorem TotalAddMonoidAlgebra.coeff_single E0 #

∀ {R : Type u_1} {M : Type u_2} [inst : Semiring R] (m : M) (r : R) [inst_1 : DecidableEq M],
  (TotalAddMonoidAlgebra.single m r).coeff = Pi.single m r

theorem TotalMonoidAlgebra.coeff_single E0 #

∀ {R : Type u_1} {M : Type u_2} [inst : Semiring R] (m : M) (r : R) [inst_1 : DecidableEq M],
  (TotalMonoidAlgebra.single m r).coeff = Pi.single m r

theorem TotalAddMonoidAlgebra.ofCoeff_single E0 #

∀ {R : Type u_1} {M : Type u_2} [inst : Semiring R] (m : M) (r : R) [inst_1 : DecidableEq M],
  TotalAddMonoidAlgebra.ofCoeff (Pi.single m r) = TotalAddMonoidAlgebra.single m r

theorem TotalMonoidAlgebra.ofCoeff_single E0 #

∀ {R : Type u_1} {M : Type u_2} [inst : Semiring R] (m : M) (r : R) [inst_1 : DecidableEq M],
  TotalMonoidAlgebra.ofCoeff (Pi.single m r) = TotalMonoidAlgebra.single m r

theorem TotalMonoidAlgebra.single_inj E1 #

∀ {R : Type u_1} {M : Type u_2} [inst : Semiring R] {r₁ r₂ : R} {m₁ m₂ : M} [inst_1 : DecidableEq M],
  TotalMonoidAlgebra.single m₁ r₁ = TotalMonoidAlgebra.single m₂ r₂ ↔ m₁ = m₂ ∧ r₁ = r₂ ∨ r₁ = 0 ∧ r₂ = 0

theorem TotalAddMonoidAlgebra.single_inj E1 #

∀ {R : Type u_1} {M : Type u_2} [inst : Semiring R] {r₁ r₂ : R} {m₁ m₂ : M} [inst_1 : DecidableEq M],
  TotalAddMonoidAlgebra.single m₁ r₁ = TotalAddMonoidAlgebra.single m₂ r₂ ↔ m₁ = m₂ ∧ r₁ = r₂ ∨ r₁ = 0 ∧ r₂ = 0

theorem TotalAddMonoidAlgebra.single_left_inj E1 #

∀ {R : Type u_1} {M : Type u_2} [inst : Semiring R] {r : R} {m₁ m₂ : M} [inst_1 : DecidableEq M],
  r ≠ 0 → (TotalAddMonoidAlgebra.single m₁ r = TotalAddMonoidAlgebra.single m₂ r ↔ m₁ = m₂)

theorem TotalMonoidAlgebra.single_left_inj E1 #

∀ {R : Type u_1} {M : Type u_2} [inst : Semiring R] {r : R} {m₁ m₂ : M} [inst_1 : DecidableEq M],
  r ≠ 0 → (TotalMonoidAlgebra.single m₁ r = TotalMonoidAlgebra.single m₂ r ↔ m₁ = m₂)

theorem TotalAddMonoidAlgebra.single_right_inj E0 #

∀ {R : Type u_1} {M : Type u_2} [inst : Semiring R] {r₁ r₂ : R} {m : M} [inst_1 : DecidableEq M],
  TotalAddMonoidAlgebra.single m r₁ = TotalAddMonoidAlgebra.single m r₂ ↔ r₁ = r₂

theorem TotalMonoidAlgebra.single_right_inj E0 #

∀ {R : Type u_1} {M : Type u_2} [inst : Semiring R] {r₁ r₂ : R} {m : M} [inst_1 : DecidableEq M],
  TotalMonoidAlgebra.single m r₁ = TotalMonoidAlgebra.single m r₂ ↔ r₁ = r₂

theorem TotalMonoidAlgebra.single_left_injective E1 #

∀ {R : Type u_1} {M : Type u_2} [inst : Semiring R] {r : R} [inst_1 : DecidableEq M],
  r ≠ 0 → Function.Injective fun m ↦ TotalMonoidAlgebra.single m r

TotalMonoidAlgebra.single m r is injective in m if r ≠ 0. For injectivity in r, see TotalMonoidAlgebra.single_right_injective.

theorem TotalAddMonoidAlgebra.single_left_injective E1 #

∀ {R : Type u_1} {M : Type u_2} [inst : Semiring R] {r : R} [inst_1 : DecidableEq M],
  r ≠ 0 → Function.Injective fun m ↦ TotalAddMonoidAlgebra.single m r

TotalAddMonoidAlgebra.single m r is injective in m if r ≠ 0. For injectivity in r, see TotalAddMonoidAlgebra.single_right_injective.

theorem TotalMonoidAlgebra.single_right_injective E1 #

∀ {R : Type u_1} {M : Type u_2} [inst : Semiring R] {m : M} [inst_1 : DecidableEq M],
  Function.Injective (TotalMonoidAlgebra.single m)

theorem TotalAddMonoidAlgebra.single_right_injective E1 #

∀ {R : Type u_1} {M : Type u_2} [inst : Semiring R] {m : M} [inst_1 : DecidableEq M],
  Function.Injective (TotalAddMonoidAlgebra.single m)

def TotalMonoidAlgebra.update E1 #

{R : Type u_1} →
  {M : Type u_2} → [inst : Semiring R] → [DecidableEq M] → M → R → TotalMonoidAlgebra R M → TotalMonoidAlgebra R M

Replace the m-th coefficient of an element x of the total monoid algebra by a given value r : R.

def TotalAddMonoidAlgebra.update E1 #

{R : Type u_1} →
  {M : Type u_2} → [inst : Semiring R] → [DecidableEq M] → M → R → TotalAddMonoidAlgebra R M → TotalAddMonoidAlgebra R M

Replace the m-th coefficient of an element x of the total additive monoid algebra by a given value r : R.

theorem TotalMonoidAlgebra.coeff_update E0 #

∀ {R : Type u_1} {M : Type u_2} [inst : Semiring R] [inst_1 : DecidableEq M] (m : M) (r : R)
  (x : TotalMonoidAlgebra R M), (TotalMonoidAlgebra.update m r x).coeff = Function.update x.coeff m r

theorem TotalAddMonoidAlgebra.coeff_update E0 #

∀ {R : Type u_1} {M : Type u_2} [inst : Semiring R] [inst_1 : DecidableEq M] (m : M) (r : R)
  (x : TotalAddMonoidAlgebra R M), (TotalAddMonoidAlgebra.update m r x).coeff = Function.update x.coeff m r

theorem TotalAddMonoidAlgebra.ofCoeff_update E0 #

∀ {R : Type u_1} {M : Type u_2} [inst : Semiring R] [inst_1 : DecidableEq M] (m : M) (r : R) (x : M → R),
  TotalAddMonoidAlgebra.ofCoeff (Function.update x m r) =
    TotalAddMonoidAlgebra.update m r (TotalAddMonoidAlgebra.ofCoeff x)

theorem TotalMonoidAlgebra.ofCoeff_update E0 #

∀ {R : Type u_1} {M : Type u_2} [inst : Semiring R] [inst_1 : DecidableEq M] (m : M) (r : R) (x : M → R),
  TotalMonoidAlgebra.ofCoeff (Function.update x m r) = TotalMonoidAlgebra.update m r (TotalMonoidAlgebra.ofCoeff x)

instance TotalAddMonoidAlgebra.smulZeroClass E0 #

{R : Type u_1} →
  {M : Type u_2} →
    [inst : Semiring R] → {A : Type u_6} → [SMulZeroClass A R] → SMulZeroClass A (TotalAddMonoidAlgebra R M)

instance TotalMonoidAlgebra.smulZeroClass E0 #

{R : Type u_1} →
  {M : Type u_2} → [inst : Semiring R] → {A : Type u_6} → [SMulZeroClass A R] → SMulZeroClass A (TotalMonoidAlgebra R M)

theorem TotalAddMonoidAlgebra.coeff_smul E0 #

∀ {R : Type u_1} {M : Type u_2} [inst : Semiring R] {A : Type u_6} [inst_1 : SMulZeroClass A R] (a : A)
  (x : TotalAddMonoidAlgebra R M), (a • x).coeff = a • x.coeff

theorem TotalMonoidAlgebra.coeff_smul E0 #

∀ {R : Type u_1} {M : Type u_2} [inst : Semiring R] {A : Type u_6} [inst_1 : SMulZeroClass A R] (a : A)
  (x : TotalMonoidAlgebra R M), (a • x).coeff = a • x.coeff

theorem TotalAddMonoidAlgebra.ofCoeff_smul E0 #

∀ {R : Type u_1} {M : Type u_2} [inst : Semiring R] {A : Type u_6} [inst_1 : SMulZeroClass A R] (a : A) (x : M → R),
  TotalAddMonoidAlgebra.ofCoeff (a • x) = a • TotalAddMonoidAlgebra.ofCoeff x

theorem TotalMonoidAlgebra.ofCoeff_smul E0 #

∀ {R : Type u_1} {M : Type u_2} [inst : Semiring R] {A : Type u_6} [inst_1 : SMulZeroClass A R] (a : A) (x : M → R),
  TotalMonoidAlgebra.ofCoeff (a • x) = a • TotalMonoidAlgebra.ofCoeff x

theorem TotalAddMonoidAlgebra.coeff_smul_apply E0 #

∀ {R : Type u_1} {M : Type u_2} [inst : Semiring R] {A : Type u_6} [inst_1 : SMulZeroClass A R] (a : A)
  (x : TotalAddMonoidAlgebra R M) (m : M), (a • x).coeff m = a • x.coeff m

theorem TotalMonoidAlgebra.coeff_smul_apply E0 #

∀ {R : Type u_1} {M : Type u_2} [inst : Semiring R] {A : Type u_6} [inst_1 : SMulZeroClass A R] (a : A)
  (x : TotalMonoidAlgebra R M) (m : M), (a • x).coeff m = a • x.coeff m

theorem TotalMonoidAlgebra.smul_single E0 #

∀ {R : Type u_1} {M : Type u_2} [inst : Semiring R] {A : Type u_6} [inst_1 : SMulZeroClass A R] [inst_2 : DecidableEq M]
  (a : A) (m : M) (r : R), a • TotalMonoidAlgebra.single m r = TotalMonoidAlgebra.single m (a • r)

theorem TotalAddMonoidAlgebra.smul_single E0 #

∀ {R : Type u_1} {M : Type u_2} [inst : Semiring R] {A : Type u_6} [inst_1 : SMulZeroClass A R] [inst_2 : DecidableEq M]
  (a : A) (m : M) (r : R), a • TotalAddMonoidAlgebra.single m r = TotalAddMonoidAlgebra.single m (a • r)

theorem TotalMonoidAlgebra.smul_single' E1 #

∀ {R : Type u_1} {M : Type u_2} [inst : Semiring R] [inst_1 : DecidableEq M] (r' : R) (m : M) (r : R),
  r' • TotalMonoidAlgebra.single m r = TotalMonoidAlgebra.single m (r' * r)

theorem TotalAddMonoidAlgebra.smul_single' E1 #

∀ {R : Type u_1} {M : Type u_2} [inst : Semiring R] [inst_1 : DecidableEq M] (r' : R) (m : M) (r : R),
  r' • TotalAddMonoidAlgebra.single m r = TotalAddMonoidAlgebra.single m (r' * r)

instance TotalAddMonoidAlgebra.distribSMul E0 #

{R : Type u_1} →
  {M : Type u_2} → {N : Type u_3} → [inst : Semiring R] → [DistribSMul N R] → DistribSMul N (TotalAddMonoidAlgebra R M)

instance TotalMonoidAlgebra.distribSMul E0 #

{R : Type u_1} →
  {M : Type u_2} → {N : Type u_3} → [inst : Semiring R] → [DistribSMul N R] → DistribSMul N (TotalMonoidAlgebra R M)

instance TotalMonoidAlgebra.isScalarTower E0 #

∀ {R : Type u_1} {M : Type u_2} {N : Type u_3} {O : Type u_4} [inst : Semiring R] [inst_1 : SMulZeroClass N R]
  [inst_2 : SMulZeroClass O R] [inst_3 : SMul N O] [IsScalarTower N O R], IsScalarTower N O (TotalMonoidAlgebra R M)

instance TotalAddMonoidAlgebra.isScalarTower E0 #

∀ {R : Type u_1} {M : Type u_2} {N : Type u_3} {O : Type u_4} [inst : Semiring R] [inst_1 : SMulZeroClass N R]
  [inst_2 : SMulZeroClass O R] [inst_3 : SMul N O] [IsScalarTower N O R], IsScalarTower N O (TotalAddMonoidAlgebra R M)

instance TotalAddMonoidAlgebra.smulCommClass E0 #

∀ {R : Type u_1} {M : Type u_2} {N : Type u_3} {O : Type u_4} [inst : Semiring R] [inst_1 : SMulZeroClass N R]
  [inst_2 : SMulZeroClass O R] [SMulCommClass N O R], SMulCommClass N O (TotalAddMonoidAlgebra R M)

instance TotalMonoidAlgebra.smulCommClass E0 #

∀ {R : Type u_1} {M : Type u_2} {N : Type u_3} {O : Type u_4} [inst : Semiring R] [inst_1 : SMulZeroClass N R]
  [inst_2 : SMulZeroClass O R] [SMulCommClass N O R], SMulCommClass N O (TotalMonoidAlgebra R M)

instance TotalAddMonoidAlgebra.isCentralScalar E0 #

∀ {R : Type u_1} {M : Type u_2} {N : Type u_3} [inst : Semiring R] [inst_1 : SMulZeroClass N R]
  [inst_2 : SMulZeroClass Nᵐᵒᵖ R] [IsCentralScalar N R], IsCentralScalar N (TotalAddMonoidAlgebra R M)

instance TotalMonoidAlgebra.isCentralScalar E0 #

∀ {R : Type u_1} {M : Type u_2} {N : Type u_3} [inst : Semiring R] [inst_1 : SMulZeroClass N R]
  [inst_2 : SMulZeroClass Nᵐᵒᵖ R] [IsCentralScalar N R], IsCentralScalar N (TotalMonoidAlgebra R M)

theorem TotalMonoidAlgebra.single_zero E0 #

∀ {R : Type u_1} {M : Type u_2} [inst : Semiring R] [inst_1 : DecidableEq M] (m : M), TotalMonoidAlgebra.single m 0 = 0

theorem TotalAddMonoidAlgebra.single_zero E0 #

∀ {R : Type u_1} {M : Type u_2} [inst : Semiring R] [inst_1 : DecidableEq M] (m : M),
  TotalAddMonoidAlgebra.single m 0 = 0

theorem TotalAddMonoidAlgebra.single_add E0 #

∀ {R : Type u_1} {M : Type u_2} [inst : Semiring R] [inst_1 : DecidableEq M] (m : M) (r₁ r₂ : R),
  TotalAddMonoidAlgebra.single m (r₁ + r₂) = TotalAddMonoidAlgebra.single m r₁ + TotalAddMonoidAlgebra.single m r₂

theorem TotalMonoidAlgebra.single_add E0 #

∀ {R : Type u_1} {M : Type u_2} [inst : Semiring R] [inst_1 : DecidableEq M] (m : M) (r₁ r₂ : R),
  TotalMonoidAlgebra.single m (r₁ + r₂) = TotalMonoidAlgebra.single m r₁ + TotalMonoidAlgebra.single m r₂

def TotalMonoidAlgebra.singleAddMonoidHom E1 #

{R : Type u_1} → {M : Type u_2} → [inst : Semiring R] → [DecidableEq M] → M → R →+ TotalMonoidAlgebra R M

TotalMonoidAlgebra.single as an AddMonoidHom.

def TotalAddMonoidAlgebra.singleAddAddMonoidHom E1 #

{R : Type u_1} → {M : Type u_2} → [inst : Semiring R] → [DecidableEq M] → M → R →+ TotalAddMonoidAlgebra R M

TotalAddMonoidAlgebra.single as an AddMonoidHom.

theorem TotalAddMonoidAlgebra.singleAddAddMonoidHom_apply E0 #

∀ {R : Type u_1} {M : Type u_2} [inst : Semiring R] [inst_1 : DecidableEq M] (m : M) (r : R),
  (TotalAddMonoidAlgebra.singleAddAddMonoidHom m) r = TotalAddMonoidAlgebra.single m r

theorem TotalMonoidAlgebra.singleAddMonoidHom_apply E0 #

∀ {R : Type u_1} {M : Type u_2} [inst : Semiring R] [inst_1 : DecidableEq M] (m : M) (r : R),
  (TotalMonoidAlgebra.singleAddMonoidHom m) r = TotalMonoidAlgebra.single m r

theorem TotalAddMonoidAlgebra.coeff_single_apply E0 #

∀ {R : Type u_1} {M : Type u_2} [inst : Semiring R] [inst_1 : DecidableEq M] {a a' : M} {b : R},
  (TotalAddMonoidAlgebra.single a b).coeff a' = if a = a' then b else 0

theorem TotalMonoidAlgebra.coeff_single_apply E0 #

∀ {R : Type u_1} {M : Type u_2} [inst : Semiring R] [inst_1 : DecidableEq M] {a a' : M} {b : R},
  (TotalMonoidAlgebra.single a b).coeff a' = if a = a' then b else 0

theorem TotalMonoidAlgebra.single_eq_zero E0 #

∀ {R : Type u_1} {M : Type u_2} [inst : Semiring R] {r : R} {m : M} [inst_1 : DecidableEq M],
  TotalMonoidAlgebra.single m r = 0 ↔ r = 0

theorem TotalAddMonoidAlgebra.single_eq_zero E0 #

∀ {R : Type u_1} {M : Type u_2} [inst : Semiring R] {r : R} {m : M} [inst_1 : DecidableEq M],
  TotalAddMonoidAlgebra.single m r = 0 ↔ r = 0

theorem TotalAddMonoidAlgebra.single_ne_zero E1 #

∀ {R : Type u_1} {M : Type u_2} [inst : Semiring R] {r : R} {m : M} [inst_1 : DecidableEq M],
  TotalAddMonoidAlgebra.single m r ≠ 0 ↔ r ≠ 0

theorem TotalMonoidAlgebra.single_ne_zero E1 #

∀ {R : Type u_1} {M : Type u_2} [inst : Semiring R] {r : R} {m : M} [inst_1 : DecidableEq M],
  TotalMonoidAlgebra.single m r ≠ 0 ↔ r ≠ 0

instance TotalMonoidAlgebra.one E0 #

{R : Type u_1} → {M : Type u_2} → [inst : Semiring R] → [One M] → [DecidableEq M] → One (TotalMonoidAlgebra R M)

The unit of the multiplication is single 1 1, i.e. the function that is 1 at 1 and 0 elsewhere.

instance TotalAddMonoidAlgebra.zero E0 #

{R : Type u_1} → {M : Type u_2} → [inst : Semiring R] → [Zero M] → [DecidableEq M] → One (TotalAddMonoidAlgebra R M)

The unit of the multiplication is single 0 1, i.e. the function that is 1 at 0 and 0 elsewhere.

theorem TotalMonoidAlgebra.one_def E0 #

∀ {R : Type u_1} {M : Type u_2} [inst : Semiring R] [inst_1 : One M] [inst_2 : DecidableEq M],
  1 = TotalMonoidAlgebra.single 1 1

theorem TotalAddMonoidAlgebra.one_def E0 #

∀ {R : Type u_1} {M : Type u_2} [inst : Semiring R] [inst_1 : Zero M] [inst_2 : DecidableEq M],
  1 = TotalAddMonoidAlgebra.single 0 1

theorem TotalAddMonoidAlgebra.coeff_one_zero E0 #

∀ {R : Type u_1} {M : Type u_2} [inst : Semiring R] [inst_1 : Zero M] [inst_2 : DecidableEq M],
  TotalAddMonoidAlgebra.coeff 1 0 = 1

theorem TotalMonoidAlgebra.coeff_one_one E0 #

∀ {R : Type u_1} {M : Type u_2} [inst : Semiring R] [inst_1 : One M] [inst_2 : DecidableEq M],
  TotalMonoidAlgebra.coeff 1 1 = 1

instance TotalMonoidAlgebra.instMul E0 #

{R : Type u_1} →
  {M : Type u_2} → [inst : Semiring R] → [inst_1 : Mul M] → [Finset.HasMulAntidiagonal M] → Mul (TotalMonoidAlgebra R M)

The product of x y : R⟦M⟧ is the function whose value at m is the sum of x m₁ * y m₂ over all pairs m₁, m₂ such that m₁ * m₂ = m.

instance TotalAddMonoidAlgebra.instMul E0 #

{R : Type u_1} →
  {M : Type u_2} → [inst : Semiring R] → [inst_1 : Add M] → [Finset.HasAntidiagonal M] → Mul (TotalAddMonoidAlgebra R M)

The product of x y : R⟦M⟧ is the function whose value at m is the sum of x m₁ * y m₂ over all pairs m₁, m₂ such that m₁ + m₂ = m.

theorem TotalMonoidAlgebra.mul_def E0 #

∀ {R : Type u_1} {M : Type u_2} [inst : Semiring R] [inst_1 : Mul M] [inst_2 : Finset.HasMulAntidiagonal M]
  (x y : TotalMonoidAlgebra R M),
  x * y =
    TotalMonoidAlgebra.ofCoeff fun z ↦ ∑ p ∈ Finset.HasMulAntidiagonal.mulAntidiagonal z, x.coeff p.1 * y.coeff p.2

theorem TotalAddMonoidAlgebra.mul_def E0 #

∀ {R : Type u_1} {M : Type u_2} [inst : Semiring R] [inst_1 : Add M] [inst_2 : Finset.HasAntidiagonal M]
  (x y : TotalAddMonoidAlgebra R M),
  x * y = TotalAddMonoidAlgebra.ofCoeff fun z ↦ ∑ p ∈ Finset.HasAntidiagonal.antidiagonal z, x.coeff p.1 * y.coeff p.2

theorem TotalMonoidAlgebra.coeff_mul E1 #

∀ {R : Type u_1} {M : Type u_2} [inst : Semiring R] [inst_1 : Mul M] [inst_2 : Finset.HasMulAntidiagonal M]
  (x y : TotalMonoidAlgebra R M) (m : M),
  (x * y).coeff m = ∑ p ∈ Finset.HasMulAntidiagonal.mulAntidiagonal m, x.coeff p.1 * y.coeff p.2

theorem TotalAddMonoidAlgebra.coeff_mul E1 #

∀ {R : Type u_1} {M : Type u_2} [inst : Semiring R] [inst_1 : Add M] [inst_2 : Finset.HasAntidiagonal M]
  (x y : TotalAddMonoidAlgebra R M) (m : M),
  (x * y).coeff m = ∑ p ∈ Finset.HasAntidiagonal.antidiagonal m, x.coeff p.1 * y.coeff p.2

instance TotalAddMonoidAlgebra.nonUnitalNonAssocSemiring E0 #

{R : Type u_1} →
  {M : Type u_2} →
    [inst : Semiring R] →
      [inst_1 : Add M] → [Finset.HasAntidiagonal M] → NonUnitalNonAssocSemiring (TotalAddMonoidAlgebra R M)

instance TotalMonoidAlgebra.nonUnitalNonAssocSemiring E0 #

{R : Type u_1} →
  {M : Type u_2} →
    [inst : Semiring R] →
      [inst_1 : Mul M] → [Finset.HasMulAntidiagonal M] → NonUnitalNonAssocSemiring (TotalMonoidAlgebra R M)

theorem TotalAddMonoidAlgebra.single_mul_single E0 #

∀ {R : Type u_1} {M : Type u_2} [inst : Semiring R] [inst_1 : Add M] [inst_2 : Finset.HasAntidiagonal M]
  [inst_3 : DecidableEq M] (m₁ m₂ : M) (r₁ r₂ : R),
  TotalAddMonoidAlgebra.single m₁ r₁ * TotalAddMonoidAlgebra.single m₂ r₂ =
    TotalAddMonoidAlgebra.single (m₁ + m₂) (r₁ * r₂)

theorem TotalMonoidAlgebra.single_mul_single E0 #

∀ {R : Type u_1} {M : Type u_2} [inst : Semiring R] [inst_1 : Mul M] [inst_2 : Finset.HasMulAntidiagonal M]
  [inst_3 : DecidableEq M] (m₁ m₂ : M) (r₁ r₂ : R),
  TotalMonoidAlgebra.single m₁ r₁ * TotalMonoidAlgebra.single m₂ r₂ = TotalMonoidAlgebra.single (m₁ * m₂) (r₁ * r₂)

theorem TotalMonoidAlgebra.single_commute_single E0 #

∀ {R : Type u_1} {M : Type u_2} [inst : Semiring R] {r₁ r₂ : R} {m₁ m₂ : M} [inst_1 : Mul M]
  [inst_2 : Finset.HasMulAntidiagonal M] [inst_3 : DecidableEq M],
  Commute m₁ m₂ → Commute r₁ r₂ → Commute (TotalMonoidAlgebra.single m₁ r₁) (TotalMonoidAlgebra.single m₂ r₂)

theorem TotalAddMonoidAlgebra.single_commute_single E0 #

∀ {R : Type u_1} {M : Type u_2} [inst : Semiring R] {r₁ r₂ : R} {m₁ m₂ : M} [inst_1 : Add M]
  [inst_2 : Finset.HasAntidiagonal M] [inst_3 : DecidableEq M],
  AddCommute m₁ m₂ → Commute r₁ r₂ → Commute (TotalAddMonoidAlgebra.single m₁ r₁) (TotalAddMonoidAlgebra.single m₂ r₂)

theorem TotalAddMonoidAlgebra.single_commute E0 #

∀ {R : Type u_1} {M : Type u_2} [inst : Semiring R] {r : R} {m : M} [inst_1 : Add M] [inst_2 : Finset.HasAntidiagonal M]
  [inst_3 : DecidableEq M],
  (∀ (m' : M), AddCommute m m') →
    (∀ (r' : R), Commute r r') → ∀ (x : TotalAddMonoidAlgebra R M), Commute (TotalAddMonoidAlgebra.single m r) x

theorem TotalMonoidAlgebra.single_commute E0 #

∀ {R : Type u_1} {M : Type u_2} [inst : Semiring R] {r : R} {m : M} [inst_1 : Mul M]
  [inst_2 : Finset.HasMulAntidiagonal M] [inst_3 : DecidableEq M],
  (∀ (m' : M), Commute m m') →
    (∀ (r' : R), Commute r r') → ∀ (x : TotalMonoidAlgebra R M), Commute (TotalMonoidAlgebra.single m r) x

theorem TotalAddMonoidAlgebra.coeff_mul_single_eq_coeff_mul E1 #

∀ {R : Type u_1} {M : Type u_2} [inst : Semiring R] {x : TotalAddMonoidAlgebra R M} {r : R} {m m₁ : M} [inst_1 : Add M]
  [inst_2 : Finset.HasAntidiagonal M] [inst_3 : DecidableEq M] (m₂ : M),
  (∀ (m' : M), m' + m = m₁ ↔ m' = m₂) → (x * TotalAddMonoidAlgebra.single m r).coeff m₁ = x.coeff m₂ * r

theorem TotalMonoidAlgebra.coeff_mul_single_eq_coeff_mul E1 #

∀ {R : Type u_1} {M : Type u_2} [inst : Semiring R] {x : TotalMonoidAlgebra R M} {r : R} {m m₁ : M} [inst_1 : Mul M]
  [inst_2 : Finset.HasMulAntidiagonal M] [inst_3 : DecidableEq M] (m₂ : M),
  (∀ (m' : M), m' * m = m₁ ↔ m' = m₂) → (x * TotalMonoidAlgebra.single m r).coeff m₁ = x.coeff m₂ * r

theorem TotalAddMonoidAlgebra.coeff_single_mul_eq_mul_coeff E1 #

∀ {R : Type u_1} {M : Type u_2} [inst : Semiring R] {x : TotalAddMonoidAlgebra R M} {r : R} {m m₁ : M} [inst_1 : Add M]
  [inst_2 : Finset.HasAntidiagonal M] [inst_3 : DecidableEq M] (m₂ : M),
  (∀ (m' : M), m + m' = m₁ ↔ m' = m₂) → (TotalAddMonoidAlgebra.single m r * x).coeff m₁ = r * x.coeff m₂

theorem TotalMonoidAlgebra.coeff_single_mul_eq_mul_coeff E1 #

∀ {R : Type u_1} {M : Type u_2} [inst : Semiring R] {x : TotalMonoidAlgebra R M} {r : R} {m m₁ : M} [inst_1 : Mul M]
  [inst_2 : Finset.HasMulAntidiagonal M] [inst_3 : DecidableEq M] (m₂ : M),
  (∀ (m' : M), m * m' = m₁ ↔ m' = m₂) → (TotalMonoidAlgebra.single m r * x).coeff m₁ = r * x.coeff m₂

theorem TotalAddMonoidAlgebra.coeff_mul_single_of_forall_add_ne E0 #

∀ {R : Type u_1} {M : Type u_2} [inst : Semiring R] {m m' : M} [inst_1 : Add M] [inst_2 : Finset.HasAntidiagonal M]
  [inst_3 : DecidableEq M] (r : R) (x : TotalAddMonoidAlgebra R M),
  (∀ (d : M), d + m ≠ m') → (x * TotalAddMonoidAlgebra.single m r).coeff m' = 0

theorem TotalMonoidAlgebra.coeff_mul_single_of_forall_mul_ne E0 #

∀ {R : Type u_1} {M : Type u_2} [inst : Semiring R] {m m' : M} [inst_1 : Mul M] [inst_2 : Finset.HasMulAntidiagonal M]
  [inst_3 : DecidableEq M] (r : R) (x : TotalMonoidAlgebra R M),
  (∀ (d : M), d * m ≠ m') → (x * TotalMonoidAlgebra.single m r).coeff m' = 0

theorem TotalAddMonoidAlgebra.coeff_single_mul_of_forall_add_ne E0 #

∀ {R : Type u_1} {M : Type u_2} [inst : Semiring R] {m m' : M} [inst_1 : Add M] [inst_2 : Finset.HasAntidiagonal M]
  [inst_3 : DecidableEq M] (r : R) (x : TotalAddMonoidAlgebra R M),
  (∀ (d : M), m + d ≠ m') → (TotalAddMonoidAlgebra.single m r * x).coeff m' = 0

theorem TotalMonoidAlgebra.coeff_single_mul_of_forall_mul_ne E0 #

∀ {R : Type u_1} {M : Type u_2} [inst : Semiring R] {m m' : M} [inst_1 : Mul M] [inst_2 : Finset.HasMulAntidiagonal M]
  [inst_3 : DecidableEq M] (r : R) (x : TotalMonoidAlgebra R M),
  (∀ (d : M), m * d ≠ m') → (TotalMonoidAlgebra.single m r * x).coeff m' = 0

def TotalMonoidAlgebra.ofMagma E1 #

(R : Type u_6) →
  (M : Type u_7) →
    [inst : Semiring R] →
      [inst_1 : Mul M] → [inst_2 : Finset.HasMulAntidiagonal M] → [DecidableEq M] → M →ₙ* TotalMonoidAlgebra R M

The embedding of a magma into its total magma algebra.

theorem TotalMonoidAlgebra.ofMagma_apply E0 #

∀ (R : Type u_6) (M : Type u_7) [inst : Semiring R] [inst_1 : Mul M] [inst_2 : Finset.HasMulAntidiagonal M]
  [inst_3 : DecidableEq M] (a : M), (TotalMonoidAlgebra.ofMagma R M) a = TotalMonoidAlgebra.single a 1

instance TotalMonoidAlgebra.nonUnitalSemiring E0 #

{R : Type u_1} →
  {M : Type u_2} →
    [inst : Semiring R] →
      [inst_1 : Semigroup M] → [Finset.HasMulAntidiagonal M] → NonUnitalSemiring (TotalMonoidAlgebra R M)

instance TotalAddMonoidAlgebra.nonUnitalSemiring E0 #

{R : Type u_1} →
  {M : Type u_2} →
    [inst : Semiring R] →
      [inst_1 : AddSemigroup M] → [Finset.HasAntidiagonal M] → NonUnitalSemiring (TotalAddMonoidAlgebra R M)

instance TotalAddMonoidAlgebra.nonAssocSemiring E0 #

{R : Type u_1} →
  {M : Type u_2} →
    [inst : Semiring R] →
      [inst_1 : AddZeroClass M] →
        [Finset.HasAntidiagonal M] → [DecidableEq M] → NonAssocSemiring (TotalAddMonoidAlgebra R M)

instance TotalMonoidAlgebra.nonAssocSemiring E0 #

{R : Type u_1} →
  {M : Type u_2} →
    [inst : Semiring R] →
      [inst_1 : MulOneClass M] →
        [Finset.HasMulAntidiagonal M] → [DecidableEq M] → NonAssocSemiring (TotalMonoidAlgebra R M)

theorem TotalAddMonoidAlgebra.natCast_def E0 #

∀ {R : Type u_1} {M : Type u_2} [inst : Semiring R] [inst_1 : AddZeroClass M] [inst_2 : Finset.HasAntidiagonal M]
  [inst_3 : DecidableEq M] (n : ℕ), ↑n = TotalAddMonoidAlgebra.single 0 ↑n

theorem TotalMonoidAlgebra.natCast_def E0 #

∀ {R : Type u_1} {M : Type u_2} [inst : Semiring R] [inst_1 : MulOneClass M] [inst_2 : Finset.HasMulAntidiagonal M]
  [inst_3 : DecidableEq M] (n : ℕ), ↑n = TotalMonoidAlgebra.single 1 ↑n

theorem TotalMonoidAlgebra.ofNat_def E0 #

∀ {R : Type u_1} {M : Type u_2} [inst : Semiring R] [inst_1 : MulOneClass M] [inst_2 : Finset.HasMulAntidiagonal M]
  [inst_3 : DecidableEq M] (n : ℕ) [inst_4 : n.AtLeastTwo], OfNat.ofNat n = TotalMonoidAlgebra.single 1 (OfNat.ofNat n)

theorem TotalAddMonoidAlgebra.ofNat_def E0 #

∀ {R : Type u_1} {M : Type u_2} [inst : Semiring R] [inst_1 : AddZeroClass M] [inst_2 : Finset.HasAntidiagonal M]
  [inst_3 : DecidableEq M] (n : ℕ) [inst_4 : n.AtLeastTwo],
  OfNat.ofNat n = TotalAddMonoidAlgebra.single 0 (OfNat.ofNat n)

theorem TotalMonoidAlgebra.coeff_natCast E0 #

∀ {R : Type u_1} {M : Type u_2} [inst : Semiring R] [inst_1 : MulOneClass M] [inst_2 : Finset.HasMulAntidiagonal M]
  [inst_3 : DecidableEq M] (n : ℕ), (↑n).coeff = Pi.single 1 ↑n

theorem TotalAddMonoidAlgebra.coeff_natCast E0 #

∀ {R : Type u_1} {M : Type u_2} [inst : Semiring R] [inst_1 : AddZeroClass M] [inst_2 : Finset.HasAntidiagonal M]
  [inst_3 : DecidableEq M] (n : ℕ), (↑n).coeff = Pi.single 0 ↑n

theorem TotalMonoidAlgebra.coeff_ofNat E0 #

∀ {R : Type u_1} {M : Type u_2} [inst : Semiring R] [inst_1 : MulOneClass M] [inst_2 : Finset.HasMulAntidiagonal M]
  [inst_3 : DecidableEq M] (n : ℕ) [inst_4 : n.AtLeastTwo], (OfNat.ofNat n).coeff = Pi.single 1 (OfNat.ofNat n)

theorem TotalAddMonoidAlgebra.coeff_ofNat E0 #

∀ {R : Type u_1} {M : Type u_2} [inst : Semiring R] [inst_1 : AddZeroClass M] [inst_2 : Finset.HasAntidiagonal M]
  [inst_3 : DecidableEq M] (n : ℕ) [inst_4 : n.AtLeastTwo], (OfNat.ofNat n).coeff = Pi.single 0 (OfNat.ofNat n)

theorem TotalMonoidAlgebra.coeff_mul_single_one E1 #

∀ {R : Type u_1} {M : Type u_2} [inst : Semiring R] [inst_1 : MulOneClass M] [inst_2 : Finset.HasMulAntidiagonal M]
  [inst_3 : DecidableEq M] (x : TotalMonoidAlgebra R M) (r : R) (m : M),
  (x * TotalMonoidAlgebra.single 1 r).coeff m = x.coeff m * r

theorem TotalAddMonoidAlgebra.coeff_mul_single_zero E1 #

∀ {R : Type u_1} {M : Type u_2} [inst : Semiring R] [inst_1 : AddZeroClass M] [inst_2 : Finset.HasAntidiagonal M]
  [inst_3 : DecidableEq M] (x : TotalAddMonoidAlgebra R M) (r : R) (m : M),
  (x * TotalAddMonoidAlgebra.single 0 r).coeff m = x.coeff m * r

theorem TotalAddMonoidAlgebra.coeff_single_zero_mul E1 #

∀ {R : Type u_1} {M : Type u_2} [inst : Semiring R] [inst_1 : AddZeroClass M] [inst_2 : Finset.HasAntidiagonal M]
  [inst_3 : DecidableEq M] (x : TotalAddMonoidAlgebra R M) (r : R) (m : M),
  (TotalAddMonoidAlgebra.single 0 r * x).coeff m = r * x.coeff m

theorem TotalMonoidAlgebra.coeff_single_one_mul E1 #

∀ {R : Type u_1} {M : Type u_2} [inst : Semiring R] [inst_1 : MulOneClass M] [inst_2 : Finset.HasMulAntidiagonal M]
  [inst_3 : DecidableEq M] (x : TotalMonoidAlgebra R M) (r : R) (m : M),
  (TotalMonoidAlgebra.single 1 r * x).coeff m = r * x.coeff m

theorem TotalAddMonoidAlgebra.coeff_mul_natCast E1 #

∀ {R : Type u_1} {M : Type u_2} [inst : Semiring R] [inst_1 : AddZeroClass M] [inst_2 : Finset.HasAntidiagonal M]
  [inst_3 : DecidableEq M] (x : TotalAddMonoidAlgebra R M) (n : ℕ) (m : M), (x * ↑n).coeff m = x.coeff m * ↑n

theorem TotalMonoidAlgebra.coeff_mul_natCast E1 #

∀ {R : Type u_1} {M : Type u_2} [inst : Semiring R] [inst_1 : MulOneClass M] [inst_2 : Finset.HasMulAntidiagonal M]
  [inst_3 : DecidableEq M] (x : TotalMonoidAlgebra R M) (n : ℕ) (m : M), (x * ↑n).coeff m = x.coeff m * ↑n

theorem TotalAddMonoidAlgebra.coeff_natCast_mul E1 #

∀ {R : Type u_1} {M : Type u_2} [inst : Semiring R] [inst_1 : AddZeroClass M] [inst_2 : Finset.HasAntidiagonal M]
  [inst_3 : DecidableEq M] (x : TotalAddMonoidAlgebra R M) (n : ℕ) (m : M), (↑n * x).coeff m = ↑n * x.coeff m

theorem TotalMonoidAlgebra.coeff_natCast_mul E1 #

∀ {R : Type u_1} {M : Type u_2} [inst : Semiring R] [inst_1 : MulOneClass M] [inst_2 : Finset.HasMulAntidiagonal M]
  [inst_3 : DecidableEq M] (x : TotalMonoidAlgebra R M) (n : ℕ) (m : M), (↑n * x).coeff m = ↑n * x.coeff m

theorem TotalAddMonoidAlgebra.coeff_mul_ofNat E1 #

∀ {R : Type u_1} {M : Type u_2} [inst : Semiring R] [inst_1 : AddZeroClass M] [inst_2 : Finset.HasAntidiagonal M]
  [inst_3 : DecidableEq M] (x : TotalAddMonoidAlgebra R M) (n : ℕ) [inst_4 : n.AtLeastTwo] (m : M),
  (x * OfNat.ofNat n).coeff m = x.coeff m * OfNat.ofNat n

theorem TotalMonoidAlgebra.coeff_mul_ofNat E1 #

∀ {R : Type u_1} {M : Type u_2} [inst : Semiring R] [inst_1 : MulOneClass M] [inst_2 : Finset.HasMulAntidiagonal M]
  [inst_3 : DecidableEq M] (x : TotalMonoidAlgebra R M) (n : ℕ) [inst_4 : n.AtLeastTwo] (m : M),
  (x * OfNat.ofNat n).coeff m = x.coeff m * OfNat.ofNat n

theorem TotalMonoidAlgebra.coeff_ofNat_mul E1 #

∀ {R : Type u_1} {M : Type u_2} [inst : Semiring R] [inst_1 : MulOneClass M] [inst_2 : Finset.HasMulAntidiagonal M]
  [inst_3 : DecidableEq M] (x : TotalMonoidAlgebra R M) (n : ℕ) [inst_4 : n.AtLeastTwo] (m : M),
  (OfNat.ofNat n * x).coeff m = OfNat.ofNat n * x.coeff m

theorem TotalAddMonoidAlgebra.coeff_ofNat_mul E1 #

∀ {R : Type u_1} {M : Type u_2} [inst : Semiring R] [inst_1 : AddZeroClass M] [inst_2 : Finset.HasAntidiagonal M]
  [inst_3 : DecidableEq M] (x : TotalAddMonoidAlgebra R M) (n : ℕ) [inst_4 : n.AtLeastTwo] (m : M),
  (OfNat.ofNat n * x).coeff m = OfNat.ofNat n * x.coeff m

def TotalMonoidAlgebra.of E1 #

(R : Type u_6) →
  (M : Type u_7) →
    [inst : Semiring R] →
      [inst_1 : MulOneClass M] →
        [inst_2 : Finset.HasMulAntidiagonal M] → [inst_3 : DecidableEq M] → M →* TotalMonoidAlgebra R M

The embedding of a unital magma into its total magma algebra.

theorem TotalMonoidAlgebra.of_apply E0 #

∀ (R : Type u_6) (M : Type u_7) [inst : Semiring R] [inst_1 : MulOneClass M] [inst_2 : Finset.HasMulAntidiagonal M]
  [inst_3 : DecidableEq M] (a : M), (TotalMonoidAlgebra.of R M) a = TotalMonoidAlgebra.single a 1

theorem TotalMonoidAlgebra.of_injective E1 #

∀ {R : Type u_1} {M : Type u_2} [inst : Semiring R] [inst_1 : MulOneClass M] [inst_2 : Finset.HasMulAntidiagonal M]
  [inst_3 : DecidableEq M] [Nontrivial R], Function.Injective ⇑(TotalMonoidAlgebra.of R M)

theorem TotalMonoidAlgebra.of_commute E1 #

∀ {R : Type u_1} {M : Type u_2} [inst : Semiring R] {m : M} [inst_1 : MulOneClass M]
  [inst_2 : Finset.HasMulAntidiagonal M] [inst_3 : DecidableEq M],
  (∀ (m' : M), Commute m m') → ∀ (f : TotalMonoidAlgebra R M), Commute ((TotalMonoidAlgebra.of R M) m) f

def TotalMonoidAlgebra.singleHom E1 #

{R : Type u_1} →
  {M : Type u_2} →
    [inst : Semiring R] →
      [inst_1 : MulOneClass M] →
        [inst_2 : Finset.HasMulAntidiagonal M] → [inst_3 : DecidableEq M] → R × M →* TotalMonoidAlgebra R M

TotalMonoidAlgebra.single as a MonoidHom from the product type into the total monoid algebra.

Note the order of the elements of the product are reversed compared to the arguments of TotalMonoidAlgebra.single.

theorem TotalMonoidAlgebra.singleHom_apply E0 #

∀ {R : Type u_1} {M : Type u_2} [inst : Semiring R] [inst_1 : MulOneClass M] [inst_2 : Finset.HasMulAntidiagonal M]
  [inst_3 : DecidableEq M] (a : R × M), TotalMonoidAlgebra.singleHom a = TotalMonoidAlgebra.single a.2 a.1

def TotalMonoidAlgebra.singleOneRingHom E1 #

{R : Type u_1} →
  {M : Type u_2} →
    [inst : Semiring R] →
      [inst_1 : MulOneClass M] →
        [inst_2 : Finset.HasMulAntidiagonal M] → [inst_3 : DecidableEq M] → R →+* TotalMonoidAlgebra R M

TotalMonoidAlgebra.single 1 as a RingHom

theorem TotalMonoidAlgebra.singleOneRingHom_apply E0 #

∀ {R : Type u_1} {M : Type u_2} [inst : Semiring R] [inst_1 : MulOneClass M] [inst_2 : Finset.HasMulAntidiagonal M]
  [inst_3 : DecidableEq M] (a : R),
  TotalMonoidAlgebra.singleOneRingHom a = (↑(TotalMonoidAlgebra.singleAddMonoidHom 1)).toFun a

theorem TotalAddMonoidAlgebra.singleZeroRingHom_apply E0 #

∀ {R : Type u_1} {M : Type u_2} [inst : Semiring R] [inst_1 : AddZeroClass M] [inst_2 : Finset.HasAntidiagonal M]
  [inst_3 : DecidableEq M] (a : R),
  TotalAddMonoidAlgebra.singleZeroRingHom a = (↑(TotalAddMonoidAlgebra.singleAddAddMonoidHom 0)).toFun a

def TotalAddMonoidAlgebra.singleZeroRingHom E1 #

{R : Type u_1} →
  {M : Type u_2} →
    [inst : Semiring R] →
      [inst_1 : AddZeroClass M] →
        [inst_2 : Finset.HasAntidiagonal M] → [inst_3 : DecidableEq M] → R →+* TotalAddMonoidAlgebra R M

TotalAddMonoidAlgebra.single 1 as a RingHom

instance TotalAddMonoidAlgebra.semiring E0 #

{R : Type u_1} →
  {M : Type u_2} →
    [inst : Semiring R] →
      [inst_1 : AddMonoid M] → [Finset.HasAntidiagonal M] → [DecidableEq M] → Semiring (TotalAddMonoidAlgebra R M)

instance TotalMonoidAlgebra.semiring E0 #

{R : Type u_1} →
  {M : Type u_2} →
    [inst : Semiring R] →
      [inst_1 : Monoid M] → [Finset.HasMulAntidiagonal M] → [DecidableEq M] → Semiring (TotalMonoidAlgebra R M)

theorem TotalAddMonoidAlgebra.single_pow E0 #

∀ {R : Type u_1} {M : Type u_2} [inst : Semiring R] [inst_1 : AddMonoid M] [inst_2 : Finset.HasAntidiagonal M]
  [inst_3 : DecidableEq M] (m : M) (r : R) (n : ℕ),
  TotalAddMonoidAlgebra.single m r ^ n = TotalAddMonoidAlgebra.single (n • m) (r ^ n)

theorem TotalMonoidAlgebra.single_pow E0 #

∀ {R : Type u_1} {M : Type u_2} [inst : Semiring R] [inst_1 : Monoid M] [inst_2 : Finset.HasMulAntidiagonal M]
  [inst_3 : DecidableEq M] (m : M) (r : R) (n : ℕ),
  TotalMonoidAlgebra.single m r ^ n = TotalMonoidAlgebra.single (m ^ n) (r ^ n)